Fix setup.py.

This commit is contained in:
Valentin Lorentz 2015-08-09 22:45:12 +02:00
parent 1ab1bebeff
commit 3991faf7ee

View File

@ -51,7 +51,7 @@ try:
proc = subprocess.Popen('git show HEAD --format=%ci', shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
date = proc.stdout.readline()
if minisix.PY3:
if sys.version_info[0] >= 3:
date = date.decode()
date = time.strptime(date.strip(), '%Y-%m-%d %H:%M:%S %z')
utc_date = time.gmtime(time.mktime(date))