diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-01 08:16:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-01 13:00:38 -0400 |
commit | 420c01394a31415d7a7cbb80be196bcfca48482c (patch) | |
tree | d71672faede9de984c024eadc678ae05ff5af558 /lab | |
parent | 53f00a00b7cfb5e856136ea600844160746d6ae2 (diff) | |
download | python-coveragepy-git-420c01394a31415d7a7cbb80be196bcfca48482c.tar.gz |
style: parens should indent the same as their opening line
Diffstat (limited to 'lab')
-rw-r--r-- | lab/goals.py | 2 | ||||
-rw-r--r-- | lab/hack_pyc.py | 2 | ||||
-rw-r--r-- | lab/parser.py | 8 | ||||
-rw-r--r-- | lab/run_trace.py | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lab/goals.py b/lab/goals.py index 8d8acdc6..4bda0f0f 100644 --- a/lab/goals.py +++ b/lab/goals.py @@ -40,7 +40,7 @@ def total_for_files(data, files): n_branches=sel_summ.get("num_branches", 0), n_partial_branches=sel_summ.get("num_partial_branches", 0), n_missing_branches=sel_summ.get("missing_branches", 0), - ) + ) return total diff --git a/lab/hack_pyc.py b/lab/hack_pyc.py index d63da8fa..60b8459b 100644 --- a/lab/hack_pyc.py +++ b/lab/hack_pyc.py @@ -71,7 +71,7 @@ def hack_line_numbers(code): code.co_argcount, code.co_nlocals, code.co_stacksize, code.co_flags, code.co_code, tuple(new_consts), code.co_names, code.co_varnames, code.co_filename, code.co_name, new_firstlineno, new_lnotab - ) + ) return new_code diff --git a/lab/parser.py b/lab/parser.py index 50b43564..43f3da52 100644 --- a/lab/parser.py +++ b/lab/parser.py @@ -28,19 +28,19 @@ class ParserMain: parser.add_option( "-d", action="store_true", dest="dis", help="Disassemble" - ) + ) parser.add_option( "-R", action="store_true", dest="recursive", help="Recurse to find source files" - ) + ) parser.add_option( "-s", action="store_true", dest="source", help="Show analyzed source" - ) + ) parser.add_option( "-t", action="store_true", dest="tokens", help="Show tokens" - ) + ) options, args = parser.parse_args() if options.recursive: diff --git a/lab/run_trace.py b/lab/run_trace.py index c0e47593..54e6a53f 100644 --- a/lab/run_trace.py +++ b/lab/run_trace.py @@ -20,7 +20,7 @@ def trace(frame, event, arg): os.path.basename(frame.f_code.co_filename), frame.f_lineno, frame.f_lasti, - )) + )) if event == 'call': nest += 1 |