Skip to content

Commit 9312d8c

Browse files
committed
Replace depricated base64.decodestring with base64.b64decode.
1 parent a39ceff commit 9312d8c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ Fixed:
4949
as plain text. (John Rouillard)
5050
- issue2551100 - old jquery has security issues, upgrade it and fix
5151
user.help.html
52+
- replace deprecated base64.decodestring with base64.b64decode in
53+
roundup_server.py and roundup_xlmrpc_server.py (reported by
54+
lmsteffan in irc)
5255

5356
Features:
5457
- issue2550522 - Add 'filter' command to command-line

roundup/scripts/roundup_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
# "default" favicon.ico
7575
# generate by using "icotool" and tools/base64
7676
import zlib, base64
77-
favico = zlib.decompress(base64.decodestring(b'''
77+
favico = zlib.decompress(base64.b64decode(b'''
7878
eJztjr1PmlEUh59XgVoshdYPWorFIhaRFq0t9pNq37b60lYSTRzcTFw6GAfj5gDYaF0dTB0MxMSE
7979
gQQd3FzKJiEC0UCIUUN1M41pV2JCXySg/0ITn5tfzvmdc+85FwT56HSc81UJjXJsk1UsNcsSqCk1
8080
BS64lK+vr7OyssLJyQl2ux2j0cjU1BQajYZIJEIwGMRms+H3+zEYDExOTjI2Nsbm5iZWqxWv18vW

roundup/scripts/roundup_xmlrpc_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def authenticate(self, tracker):
6464
scheme, challenge = authorization.split(' ', 1)
6565

6666
if scheme.lower() == 'basic':
67-
decoded = base64.decodestring(challenge)
67+
decoded = base64.b64decode(challenge)
6868
if ':' in decoded:
6969
username, password = decoded.split(':')
7070
else:

0 commit comments

Comments
 (0)