busroute.py

changeset 92
16a5c37e4e67
parent 91
209f5930d038
child 94
e27c18f080d1
equal deleted inserted replaced
91:209f5930d038 92:16a5c37e4e67
17 return region_name 17 return region_name
18 18
19 def greatly_simplify_name(region_name): 19 def greatly_simplify_name(region_name):
20 region = regions.get(region_name) 20 region = regions.get(region_name)
21 if region: 21 if region:
22 if 'greater_-replacement' in region: 22 if 'greater_replacement' in region:
23 return simplify_name(region['greater_replacement']) 23 return simplify_name(region['greater_replacement'])
24 elif 'replacement' in region: 24 if 'replacement' in region:
25 return simplify_name(region['replacement']) 25 return simplify_name(region['replacement'])
26 else: 26 else:
27 return simplify_name(region_name) 27 return simplify_name(region_name)
28 else: 28 else:
29 return region_name 29 return region_name

mercurial