Revision 4499
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/maps.py | ||
---|---|---|
48 | 48 |
|
49 | 49 |
##### Merging |
50 | 50 |
|
51 |
def simplify(str_): return re.sub(r'[\W_]+', r'', str_.lower()) |
|
52 |
|
|
51 | 53 |
def is_nonexplicit_empty_mapping(row): |
52 | 54 |
return reduce(util.and_, (v == '' for v in row[1:])) |
53 | 55 |
|
Also available in: Unified diff
maps.py: Added simplify()