Message6092
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. |
|
Date |
User |
Action |
Args |
2018-06-22 00:37:49 | joseph_myers | set | messageid: <1529627869.7.0.56676864532.issue2550960@psf.upfronthosting.co.za> |
2018-06-22 00:37:49 | joseph_myers | set | recipients:
+ joseph_myers, ber, rouilj |
2018-06-22 00:37:49 | joseph_myers | link | issue2550960 messages |
2018-06-22 00:37:49 | joseph_myers | create | |
|