Project

General

Profile

« Previous | Next » 

Revision 4499

maps.py: Added simplify()

View differences:

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