Changeset 10192 in genesis
- Timestamp:
- Mar 17, 2012, 12:21:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10190 r10192 82 82 return proxylist 83 83 84 def get_hybridlist(): 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)], 87 key=lambda name: int(''.join([c for c in name if c in string.digits])), 88 cmp=lambda x,y: x - y) 89 return hybridlist 84 90 85 91 … … 96 102 def get_hostlist(): 97 103 """ Combined hosts and proxy list""" 98 return get_nodelist() + get_proxylist() 104 return get_nodelist() + get_proxylist() + get_hybridlist() 99 105 100 106 def angle_between_points(lat1,lat2,long1,long2):
Note:
See TracChangeset
for help on using the changeset viewer.