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
(parent:
703f91b
)
remove duplicate rspec versions in GetVersion() output
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 21 Dec 2011 20:09:24 +0000
(15:09 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 21 Dec 2011 20:09:24 +0000
(15:09 -0500)
sfa/rspecs/version_manager.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/version_manager.py
b/sfa/rspecs/version_manager.py
index
8c00664
..
5d7358f
100644
(file)
--- a/
sfa/rspecs/version_manager.py
+++ b/
sfa/rspecs/version_manager.py
@@
-13,7
+13,7
@@
class VersionManager:
versions_path = path + os.sep + 'versions'
versions_module_path = 'sfa.rspecs.versions'
valid_module = lambda x: os.path.isfile(os.sep.join([versions_path, x])) \
- and
not x.endswith('.pyc') and x not in ['__init__.py']
+ and
x.endswith('.py') and x != '__init__.py'
files = [f for f in os.listdir(versions_path) if valid_module(f)]
for filename in files:
basename = filename.split('.')[0]