Fix: _split_version_suffix() may return 1 element
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 30 Oct 2015 03:46:47 +0000 (23:46 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 30 Oct 2015 03:46:47 +0000 (23:46 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/__init__.py

index 2ec0aaeae14552b3aaae2d86553ebddcd067b83f..e0a910ffe6f1a15a798449ae3ea8771b00d85a8e 100644 (file)
@@ -24,7 +24,14 @@ __version__ = '2.0.1'
 
 
 def _split_version_suffix():
-    return __version__.split('-')
+    parts = __version__.split('-')
+    version = parts[0]
+    suffix = None
+
+    if len(parts) == 2:
+        suffix = parts[1]
+
+    return version, suffix
 
 
 def get_version_tuple():
This page took 0.024996 seconds and 4 git commands to generate.