summaryrefslogtreecommitdiffstats
path: root/Misc/find_recursionlimit.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 18:39:28 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 18:39:28 (GMT)
commite7bf59f500481715e76ff646f6728e28361faff2 (patch)
tree3f3dcd530272bb5be36089c3f2f3345ee373012f /Misc/find_recursionlimit.py
parent716c3ac40cae880193dfdbda39a0ca7ed7cd2854 (diff)
downloadcpython-e7bf59f500481715e76ff646f6728e28361faff2.zip
cpython-e7bf59f500481715e76ff646f6728e28361faff2.tar.gz
cpython-e7bf59f500481715e76ff646f6728e28361faff2.tar.bz2
Run 2to3's print fixer over some places that had been missed.
Diffstat (limited to 'Misc/find_recursionlimit.py')
-rw-r--r--Misc/find_recursionlimit.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Misc/find_recursionlimit.py b/Misc/find_recursionlimit.py
index 32bdae4..b7592ce 100644
--- a/Misc/find_recursionlimit.py
+++ b/Misc/find_recursionlimit.py
@@ -62,16 +62,16 @@ def test_recurse():
def check_limit(n, test_func_name):
sys.setrecursionlimit(n)
if test_func_name.startswith("test_"):
- print test_func_name[5:]
+ print(test_func_name[5:])
else:
- print test_func_name
+ print(test_func_name)
test_func = globals()[test_func_name]
try:
test_func()
except RuntimeError:
pass
else:
- print "Yikes!"
+ print("Yikes!")
limit = 1000
while 1:
@@ -81,5 +81,5 @@ while 1:
check_limit(limit, "test_init")
check_limit(limit, "test_getattr")
check_limit(limit, "test_getitem")
- print "Limit of %d is fine" % limit
+ print("Limit of %d is fine" % limit)
limit = limit + 100