git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bd72955
)
cast version_num to string before comparing
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 29 Nov 2011 21:13:11 +0000
(16:13 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 29 Nov 2011 21:13:11 +0000
(16:13 -0500)
sfa/rspecs/version_manager.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/version_manager.py
b/sfa/rspecs/version_manager.py
index
66bad74
..
caf2d23
100644
(file)
--- a/
sfa/rspecs/version_manager.py
+++ b/
sfa/rspecs/version_manager.py
@@
-31,7
+31,7
@@
class VersionManager:
retval = None
for version in self.versions:
if type is None or type.lower() == version.type.lower():
- if version_num is None or
version_num
== version.version:
+ if version_num is None or
str(version_num)
== version.version:
if content_type is None or content_type.lower() == version.content_type.lower() \
or version.content_type == '*':
retval = version