Browse code

minor cleanup

Joseph Weston authored on 27/02/2018 00:26:16
Showing 1 changed files
... ...
@@ -26,8 +26,7 @@ def get_version(version_file=STATIC_VERSION_FILE):
26 26
     with open(os.path.join(package_root, version_file), 'rb') as f:
27 27
         exec(f.read(), {}, version_info)
28 28
     version = version_info['version']
29
-    version_is_from_git = (version == "__use_git__")
30
-    if version_is_from_git:
29
+    if version == "__use_git__":
31 30
         version = get_version_from_git()
32 31
         if not version:
33 32
             version = get_version_from_git_archive(version_info)