projects
/
deliverable
/
barectf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c119e70
)
Fix: _split_version_suffix() may return 1 element
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Fri, 30 Oct 2015 03:46:47 +0000
(23:46 -0400)
committer
Philippe 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
patch
|
blob
|
blame
|
history
diff --git
a/barectf/__init__.py
b/barectf/__init__.py
index 2ec0aaeae14552b3aaae2d86553ebddcd067b83f..e0a910ffe6f1a15a798449ae3ea8771b00d85a8e 100644
(file)
--- a/
barectf/__init__.py
+++ b/
barectf/__init__.py
@@
-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.023003 seconds
and
4
git commands to generate.