From c1aa66e75dbfcacab1fbca0e3e19c09e08d932d5 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Jan 2022 14:14:04 -0700 Subject: patman: Convert camel case in tools.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/patman/main.py') diff --git a/tools/patman/main.py b/tools/patman/main.py index c01ae36e9f9..63f0774783d 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -159,7 +159,7 @@ elif args.cmd == 'send': fd.close() elif args.full_help: - tools.PrintFullHelp( + tools.print_full_help( os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), 'README') ) -- cgit v1.2.3 From 642df431d51ea179a7473810bbfec0d81f8d37a8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Jan 2022 14:14:12 -0700 Subject: 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 --- tools/patman/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/patman/main.py') diff --git a/tools/patman/main.py b/tools/patman/main.py index 63f0774783d..85073217b51 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', -- cgit v1.2.3 From 5e2ab40172b42ae9ce6d58b95f238013184fa865 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Jan 2022 14:14:14 -0700 Subject: patman: Convert camel case in test_util.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/patman/main.py') diff --git a/tools/patman/main.py b/tools/patman/main.py index 85073217b51..7a6e910f4b3 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -135,12 +135,12 @@ if args.cmd == 'test': from patman import func_test result = unittest.TestResult() - test_util.RunTestSuites( + test_util.run_test_suites( result, False, False, False, None, None, None, [test_checkpatch.TestPatch, func_test.TestFunctional, 'gitutil', 'settings', 'terminal']) - sys.exit(test_util.ReportResult('patman', args.testname, result)) + sys.exit(test_util.report_result('patman', args.testname, result)) # Process commits, produce patches files, check them, email them elif args.cmd == 'send': -- cgit v1.2.3 From 82e0e732ee2cf6d0e125aeb7ed7de69711f35ec8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Jan 2022 14:14:16 -0700 Subject: patman: Rename Print() to Tprint() Rename this function so that when we convert it to snake case it will not conflict with the built-in print() function. Signed-off-by: Simon Glass --- tools/patman/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/patman/main.py') diff --git a/tools/patman/main.py b/tools/patman/main.py index 7a6e910f4b3..d32eae4bfca 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -177,7 +177,7 @@ elif args.cmd == 'status': args.dest_branch, args.force, args.show_comments, args.patchwork_url) except Exception as e: - terminal.Print('patman: %s: %s' % (type(e).__name__, e), + terminal.Tprint('patman: %s: %s' % (type(e).__name__, e), colour=terminal.Color.RED) if args.debug: print() -- cgit v1.2.3 From 098b10fb34140f4ac37cfab9c9afade9135710a8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Jan 2022 14:14:18 -0700 Subject: patman: Convert camel case in terminal.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/patman/main.py') diff --git a/tools/patman/main.py b/tools/patman/main.py index d32eae4bfca..2a2ac457093 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -177,7 +177,7 @@ elif args.cmd == 'status': args.dest_branch, args.force, args.show_comments, args.patchwork_url) except Exception as e: - terminal.Tprint('patman: %s: %s' % (type(e).__name__, e), + terminal.tprint('patman: %s: %s' % (type(e).__name__, e), colour=terminal.Color.RED) if args.debug: print() -- cgit v1.2.3