Address pep8 complaints.
This commit is contained in:
@@ -174,6 +174,7 @@ def isotime(at=None):
|
|||||||
def parse_isotime(timestr):
|
def parse_isotime(timestr):
|
||||||
return datetime.datetime.strptime(timestr, TIME_FORMAT)
|
return datetime.datetime.strptime(timestr, TIME_FORMAT)
|
||||||
|
|
||||||
|
|
||||||
def parse_mailmap(mailmap='.mailmap'):
|
def parse_mailmap(mailmap='.mailmap'):
|
||||||
mapping = {}
|
mapping = {}
|
||||||
if os.path.exists(mailmap):
|
if os.path.exists(mailmap):
|
||||||
@@ -185,6 +186,7 @@ def parse_mailmap(mailmap='.mailmap'):
|
|||||||
mapping[alias] = canonical_email
|
mapping[alias] = canonical_email
|
||||||
return mapping
|
return mapping
|
||||||
|
|
||||||
|
|
||||||
def str_dict_replace(s, mapping):
|
def str_dict_replace(s, mapping):
|
||||||
for s1, s2 in mapping.iteritems():
|
for s1, s2 in mapping.iteritems():
|
||||||
s = s.replace(s1, s2)
|
s = s.replace(s1, s2)
|
||||||
|
|||||||
Reference in New Issue
Block a user