diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-25 06:51:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 06:51:38 -0400 |
commit | c8881361c3b1377bd44b73754f967a6733c44410 (patch) | |
tree | 64b3ad64ca8c22a72c1cd5f0309f4891abe16e14 /lab/run_trace.py | |
parent | de0d4bdf03edbf5a95a71fb94352afd7810a1b18 (diff) | |
parent | 14b311b7783be3bc2823f17e003d8b9c6efbd3ab (diff) | |
download | python-coveragepy-git-c8881361c3b1377bd44b73754f967a6733c44410.tar.gz |
Merge pull request #670 from cclauss/print_function
print() is a function in Python 3
Diffstat (limited to 'lab/run_trace.py')
-rw-r--r-- | lab/run_trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lab/run_trace.py b/lab/run_trace.py index ea9d9bb4..27c24a1d 100644 --- a/lab/run_trace.py +++ b/lab/run_trace.py @@ -14,13 +14,13 @@ def trace(frame, event, arg): # This can happen when Python is shutting down. return None - print "%s%s %s %d @%d" % ( + print("%s%s %s %d @%d" % ( " " * nest, event, os.path.basename(frame.f_code.co_filename), frame.f_lineno, frame.f_lasti, - ) + )) if event == 'call': nest += 1 |