from patman import command
-def FindGetMaintainer(try_list):
+def find_get_maintainer(try_list):
"""Look for the get_maintainer.pl script.
Args:
return None
-def GetMaintainer(dir_list, fname, verbose=False):
+def get_maintainer(dir_list, fname, verbose=False):
"""Run get_maintainer.pl on a file if we find it.
We look for get_maintainer.pl in the 'scripts' directory at the top of
Returns:
A list of email addresses to CC to.
"""
- get_maintainer = FindGetMaintainer(dir_list)
+ get_maintainer = find_get_maintainer(dir_list)
if not get_maintainer:
if verbose:
print("WARNING: Couldn't find get_maintainer.pl")
cc += add_maintainers
elif add_maintainers:
dir_list = [os.path.join(gitutil.GetTopLevel(), 'scripts')]
- cc += get_maintainer.GetMaintainer(dir_list, commit.patch)
+ cc += get_maintainer.get_maintainer(dir_list, commit.patch)
for x in set(cc) & set(settings.bounces):
print(col.Color(col.YELLOW, 'Skipping "%s"' % x))
cc = list(set(cc) - set(settings.bounces))