summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:49:27 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:49:27 +0100
commit9789a96ca9aab44bd71fdcfc5c0bed1ef7cf0838 (patch)
tree543718d130e12237d431dc61a3ce62769ff1c312 /paste/debug
parent4bdb495a250dc8b44309a8d158fb60a8106e3287 (diff)
downloadpaste-9789a96ca9aab44bd71fdcfc5c0bed1ef7cf0838.tar.gz
Python 3: add parenthesis to print() to support Python 2 and Python 3
Use also "from __future__ import print_function".
Diffstat (limited to 'paste/debug')
-rwxr-xr-xpaste/debug/debugapp.py4
1 files changed, 2 insertions, 2 deletions
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):
'<input type="file" name="file">\n'
'<input type="submit" >\n'
'</form></body></html>\n')
- print "bingles"
+ print("bingles")
start_response("200 OK", [('Content-Type', 'text/html'),
('Content-Length', len(body))])
return [body]