changeset 1914 | a5bf0030df5f |
parent 1913 | 74cf2b2f43d4 |
child 1955 | 2f500a4b6e99 |
--- a/mercurial/templater.py Sat Mar 04 12:40:10 2006 -0800 +++ b/mercurial/templater.py Sat Mar 04 15:15:18 2006 -0800 @@ -76,9 +76,9 @@ return i = 0 for l in file(mapfile): - l = l.rstrip('\r\n') + l = l.strip() i += 1 - if l.startswith('#') or not l.strip(): continue + if not l or l[0] in '#;': continue m = re.match(r'([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.+)$', l) if m: key, val = m.groups()