summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-23 07:15:39 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 11:44:11 (GMT)
commitcc5f9a43d9d18eed50c22def3ee329be2901c2af (patch)
tree248148d83d49c86625331782efc3e94d99d27324
parentf3fd925aca2bbdec15a97df272b9a9d101bb1cf3 (diff)
kajonggtest: ignore spaces in tags field
-rwxr-xr-xsrc/kajonggtest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kajonggtest.py b/src/kajonggtest.py
index b63ca31..5308cca 100755
--- a/src/kajonggtest.py
+++ b/src/kajonggtest.py
@@ -353,14 +353,16 @@ def neutralize(rows):
"""remove things we do not want to compare"""
for row in rows:
for idx, field in enumerate(row):
+ field = field.replace(' ', '')
if field.startswith(u'Tester ') or field.startswith(u'Tüster'):
- row[idx] = 'Tester'
+ field = 'Tester'
if 'MEM' in field:
parts = field.split(',')
for part in parts[:]:
if part.startswith('MEM'):
parts.remove(part)
- row[idx] = ','.join(parts)
+ field = ','.join(parts)
+ row[idx] = field
yield row
KNOWNCOMMITS = set()