diff options
| author | Simon Glass <[email protected]> | 2022-01-29 14:14:10 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2022-02-09 12:26:12 -0700 |
| commit | 967af26b6aedc21ccb51273fbbbb898ad8c4305f (patch) | |
| tree | 65ad572ea96402b9e300ce26b6cf3ffc39486b6c | |
| parent | c3aaa05e34179f70d292dc8d5973d7066d734f29 (diff) | |
patman: Convert camel case in get_maintainer.py
Convert this file to snake case and update all files which use it.
Signed-off-by: Simon Glass <[email protected]>
| -rw-r--r-- | tools/patman/get_maintainer.py | 6 | ||||
| -rw-r--r-- | tools/patman/series.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/patman/get_maintainer.py b/tools/patman/get_maintainer.py index 98ab82f78f5..e1d15ff6ab5 100644 --- a/tools/patman/get_maintainer.py +++ b/tools/patman/get_maintainer.py @@ -6,7 +6,7 @@ import os from patman import command -def FindGetMaintainer(try_list): +def find_get_maintainer(try_list): """Look for the get_maintainer.pl script. Args: @@ -23,7 +23,7 @@ def FindGetMaintainer(try_list): 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 @@ -37,7 +37,7 @@ def GetMaintainer(dir_list, fname, verbose=False): 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") diff --git a/tools/patman/series.py b/tools/patman/series.py index 98b4c9c9e7f..7f5e6001340 100644 --- a/tools/patman/series.py +++ b/tools/patman/series.py @@ -269,7 +269,7 @@ class Series(dict): 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)) |
