diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-03-19 12:51:48 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-03-19 12:51:48 +0100 |
commit | 4c177fce89fee925f0f4fbfde00ce2e1252562c0 (patch) | |
tree | 3e7a8a8f9771aeb649449b390d1ba5038cc32059 /paste/auth | |
parent | 4450e264ae1d68e0150e0ab9f611118d9797d694 (diff) | |
download | paste-4c177fce89fee925f0f4fbfde00ce2e1252562c0.tar.gz |
Python 3: fix more submodules
* print syntax
* replace "except Exception, exc:" with "except Exception as exc:"
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/auth_tkt.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/paste/auth/auth_tkt.py b/paste/auth/auth_tkt.py index e960653..da8ddbd 100644 --- a/paste/auth/auth_tkt.py +++ b/paste/auth/auth_tkt.py @@ -75,10 +75,10 @@ class AuthTicket(object): token = auth_tkt.AuthTick('sharedsecret', 'username', os.environ['REMOTE_ADDR'], tokens=['admin']) - print 'Status: 200 OK' - print 'Content-type: text/html' - print token.cookie() - print + print('Status: 200 OK') + print('Content-type: text/html') + print(token.cookie()) + print("") ... redirect HTML ... Webware usage:: |