Commits

Michael Manfre committed 8e5bf3c

Fix get_version

Comments (0)

Files changed (1)

sqlserver_ado/__init__.py

 import os.path
 
-VERSION = (1, 0, 1, 'stable')
+VERSION = [1, 0, 1, 'stable']
 
 
 def get_version():
         except:
             # mercurial module missing or repository not found
             build_info = 'dev-unknown'
-    v = VERSION[:VERSION.index('dev')] + (build_info,)
+        v = VERSION[:-1] + [build_info]
+    else:
+        v = VERSION[:-1]
     return '.'.join(map(str, v))