Roundup Tracker - Issues

Message6092

Author joseph_myers
Recipients ber, joseph_myers, rouilj
Date 2018-06-22.00:37:49
Message-id <1529627869.7.0.56676864532.issue2550960@psf.upfronthosting.co.za>
In-reply-to
The next three patches get to the point where (with mailgw.py hacked up)
demo.py successfully serves a login page under Python 3, although
actually logging in fails with more bytes/str issues.

65. Python 3 preparation: avoid basestring.

66. Python 3 preparation: update string translate method call in
cgi/accept_language.py.

The str translate method in Python 3 is sufficiently different from that
in Python 2 that different arguments are needed here.  Note that the
existing code "ascii = ''.join([chr(x) for x in range(256)])" is
redundant with both versions (in Python 2, None can be used instead as
the first translate argument from Python 2.6 onwards).

67. Python 3 preparation: use bytes in anti_csrf_nonce.
History
Date User Action Args
2018-06-22 00:37:49joseph_myerssetmessageid: <1529627869.7.0.56676864532.issue2550960@psf.upfronthosting.co.za>
2018-06-22 00:37:49joseph_myerssetrecipients: + joseph_myers, ber, rouilj
2018-06-22 00:37:49joseph_myerslinkissue2550960 messages
2018-06-22 00:37:49joseph_myerscreate