summaryrefslogtreecommitdiff
path: root/lab/run_trace.py
diff options
context:
space:
mode:
Diffstat (limited to 'lab/run_trace.py')
-rw-r--r--lab/run_trace.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lab/run_trace.py b/lab/run_trace.py
index ea0a6cb7..27c24a1d 100644
--- a/lab/run_trace.py
+++ b/lab/run_trace.py
@@ -1,5 +1,5 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
"""Run a simple trace function on a file of Python code."""
@@ -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