From 5501bac42c2c90946bb0072c1b5be71de2469571 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 2 Mar 2008 12:29:08 +0100 Subject: pre-Py3k fixes --- Cython/Debugging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Cython/Debugging.py') diff --git a/Cython/Debugging.py b/Cython/Debugging.py index 1fbccd885..edb3f4e8c 100644 --- a/Cython/Debugging.py +++ b/Cython/Debugging.py @@ -6,7 +6,7 @@ def print_call_chain(*args): import sys - print " ".join(map(str, args)) + print(" ".join(map(str, args))) f = sys._getframe(1) while f: name = f.f_code.co_name @@ -15,6 +15,6 @@ def print_call_chain(*args): c = getattr(s, "__class__", None) if c: name = "%s.%s" % (c.__name__, name) - print "Called from:", name, f.f_lineno + print("Called from: %s %s" % (name, f.f_lineno)) f = f.f_back - print "-" * 70 + print("-" * 70) -- cgit v1.2.1