summaryrefslogtreecommitdiffstats
path: root/Doc/library/traceback.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/traceback.rst')
-rw-r--r--Doc/library/traceback.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index a9b15db..9b96743 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -147,12 +147,12 @@ module. ::
try:
exec(source, envdir)
except:
- print "Exception in user code:"
- print '-'*60
+ print("Exception in user code:")
+ print("-"*60)
traceback.print_exc(file=sys.stdout)
- print '-'*60
+ print("-"*60)
envdir = {}
- while 1:
+ while True:
run_user_code(envdir)