Address pep8 complaints.

This commit is contained in:
Soren Hansen
2010-11-23 21:58:46 +01:00
parent 07abc3ab41
commit 60580ebc42

View File

@@ -174,6 +174,7 @@ def isotime(at=None):
def parse_isotime(timestr):
return datetime.datetime.strptime(timestr, TIME_FORMAT)
def parse_mailmap(mailmap='.mailmap'):
mapping = {}
if os.path.exists(mailmap):
@@ -185,6 +186,7 @@ def parse_mailmap(mailmap='.mailmap'):
mapping[alias] = canonical_email
return mapping
def str_dict_replace(s, mapping):
for s1, s2 in mapping.iteritems():
s = s.replace(s1, s2)