- Timestamp:
- Mar 17, 2012, 12:23:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10192 r10193 84 84 def get_hybridlist(): 85 85 """Get all available proxies hybridX sorting based on X number""" 86 hybridlist = sorted([os.path.basename(x) for x in glob.glob("%s/ proxy*" % NODE_DIR)],86 hybridlist = sorted([os.path.basename(x) for x in glob.glob("%s/hybrid*" % NODE_DIR)], 87 87 key=lambda name: int(''.join([c for c in name if c in string.digits])), 88 88 cmp=lambda x,y: x - y)
Note:
See TracChangeset
for help on using the changeset viewer.