[you-get] update

This commit is contained in:
Mort Yao 2015-10-21 16:45:51 +02:00
parent 1172689992
commit b53a2e6676

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python
# This file is Python 2 compliant.
import os, sys
_srcdir = 'src/'
@ -17,8 +15,7 @@ if sys.version_info[0] == 3:
import you_get
if __name__ == '__main__':
you_get.main(repo_path=_filepath)
else:
else: # Python 2
from you_get.util import log
log.wtf("""
[Fatal] Python 3 is required.
If Python 3 is already installed on your machine, try to run this script using 'python3 you-get'.""")
log.e("[fatal] Python 3 is required!")
log.wtf("try to run this script using 'python3 you-get'.")