diff options
author | Stefan Behnel <scoder@users.berlios.de> | 2008-03-02 12:29:08 +0100 |
---|---|---|
committer | Stefan Behnel <scoder@users.berlios.de> | 2008-03-02 12:29:08 +0100 |
commit | 5501bac42c2c90946bb0072c1b5be71de2469571 (patch) | |
tree | d2ccb913d1e719780caa4ba15e5699696311172f /Cython/Debugging.py | |
parent | 2b0e49f35877fafc49cbdc17a8516ca2517b3e44 (diff) | |
download | cython-5501bac42c2c90946bb0072c1b5be71de2469571.tar.gz |
pre-Py3k fixes
Diffstat (limited to 'Cython/Debugging.py')
-rw-r--r-- | Cython/Debugging.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |