From 3991faf7ee918eeeacea0e644010c06f62ad1a55 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 9 Aug 2015 22:45:12 +0200 Subject: [PATCH] Fix setup.py. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0387ffedc..679cc5abf 100644 --- a/setup.py +++ b/setup.py @@ -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))