From 69e1b6f0da4064fbabed2d70e0b6db4839c57077 Mon Sep 17 00:00:00 2001 From: Alexandre Gauthier Date: Fri, 3 Aug 2018 07:44:23 -0400 Subject: [PATCH] Fix time namespaces in setup.py when version file is unavailable --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 36d0544ff..688c1b407 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ except: if os.path.isfile(VERSION_FILE): from src.version import version else: - version = 'installed on ' + strftime("%Y-%m-%dT%H-%M-%S", gmtime()) + version = 'installed on ' + time.strftime("%Y-%m-%dT%H-%M-%S", time.gmtime()) try: os.unlink(VERSION_FILE) except OSError: # Does not exist