diff options
Diffstat (limited to 'paste/debug/watchthreads.py')
-rw-r--r-- | paste/debug/watchthreads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/debug/watchthreads.py b/paste/debug/watchthreads.py index 1048213..c877942 100644 --- a/paste/debug/watchthreads.py +++ b/paste/debug/watchthreads.py @@ -290,7 +290,7 @@ def format_environ(environ): environ_template.substitute( key=cgi.escape(str(key)), value=cgi.escape(str(value)))) - except Exception, e: + except Exception as e: environ_rows.append( environ_template.substitute( key=cgi.escape(str(key)), @@ -339,7 +339,7 @@ def make_bad_app(global_conf, pause=0): else: count = 0 while 1: - print "I'm alive %s (%s)" % (count, thread.get_ident()) + print("I'm alive %s (%s)" % (count, thread.get_ident())) time.sleep(10) count += 1 start_response('200 OK', [('content-type', 'text/plain')]) |