8000 Use base64.b64encode directly · python/cpython@c05ab31 · GitHub
[go: up one dir, main page]

Skip to content

Commit c05ab31

Browse files
committed
Use base64.b64encode directly
1 parent 8bd4db0 commit c05ab31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_gettext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
bmsgd2luayAoaW4gIm15IG90aGVyIGNvbnRleHQiKQB3aW5rIHdpbmsA
3838
'''
3939

40-
# Invalid magic number ('ABCD' b64-encoded)
41-
GNU_MO_DATA_BAD_MAGIC_NUMBER = rb'\QUJDRA=='
40+
# .mo file with an invalid magic number
41+
GNU_MO_DATA_BAD_MAGIC_NUMBER = base64.b64encode(b'ABCD')
4242

4343
# This data contains an invalid major version number (5)
4444
# An unexpected major version number should be treated as an error when

0 commit comments

Comments
 (0)
0