From 9789a96ca9aab44bd71fdcfc5c0bed1ef7cf0838 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Tue, 18 Mar 2014 12:49:27 +0100 Subject: Python 3: add parenthesis to print() to support Python 2 and Python 3 Use also "from __future__ import print_function". --- paste/debug/debugapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'paste/debug') diff --git a/paste/debug/debugapp.py b/paste/debug/debugapp.py index 190cbdd..8c7c7c2 100755 --- a/paste/debug/debugapp.py +++ b/paste/debug/debugapp.py @@ -41,7 +41,7 @@ class SlowConsumer(object): remaining = int(total) while remaining > 0: if self.progress: - print "%s of %s remaining" % (remaining, total) + print("%s of %s remaining" % (remaining, total)) if remaining > 4096: chunk = environ['wsgi.input'].read(4096) else: @@ -59,7 +59,7 @@ class SlowConsumer(object): '\n' '\n' '\n') - print "bingles" + print("bingles") start_response("200 OK", [('Content-Type', 'text/html'), ('Content-Length', len(body))]) return [body] -- cgit v1.2.1