diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-29 14:14:12 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-02-09 12:26:12 -0700 |
commit | 642df431d51ea179a7473810bbfec0d81f8d37a8 (patch) | |
tree | 6d2a8f83434e94072bb3a350673ca7a413db0a03 /tools/patman | |
parent | 0157b187f45c00ffb3e85c7f5c33808454243608 (diff) | |
download | u-boot-642df431d51ea179a7473810bbfec0d81f8d37a8.zip u-boot-642df431d51ea179a7473810bbfec0d81f8d37a8.tar.gz u-boot-642df431d51ea179a7473810bbfec0d81f8d37a8.tar.bz2 |
patman: Convert camel case in project.py
Convert this file to snake case and update all files which use it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rwxr-xr-x | tools/patman/main.py | 2 | ||||
-rw-r--r-- | tools/patman/project.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/main.py b/tools/patman/main.py index 63f0774..8507321 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -42,7 +42,7 @@ parser.add_argument('-e', '--end', type=int, default=0, help='Commits to skip at end of patch list') parser.add_argument('-D', '--debug', action='store_true', help='Enabling debugging (provides a full traceback on error)') -parser.add_argument('-p', '--project', default=project.DetectProject(), +parser.add_argument('-p', '--project', default=project.detect_project(), help="Project name; affects default option values and " "aliases [default: %(default)s]") parser.add_argument('-P', '--patchwork-url', diff --git a/tools/patman/project.py b/tools/patman/project.py index 641e2d6..4459042 100644 --- a/tools/patman/project.py +++ b/tools/patman/project.py @@ -6,7 +6,7 @@ import os.path from patman import gitutil -def DetectProject(): +def detect_project(): """Autodetect the name of the current project. This looks for signature files/directories that are unlikely to exist except |