Skip to content

Commit e07565c

Browse files
committed
Lib/base64.py: remove useless global statements
Remove now useless "global" statements from the base32 encode / decode methods None values where changed to a global dict by 4ce6faa
1 parent 5e5762a commit e07565c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/base64.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def urlsafe_b64decode(s):
164164
_b32rev = {}
165165

166166
def _b32encode(alphabet, s):
167-
global _b32tab2
168167
# Delay the initialization of the table to not waste memory
169168
# if the function is never called
170169
if alphabet not in _b32tab2:
@@ -200,7 +199,6 @@ def _b32encode(alphabet, s):
200199
return bytes(encoded)
201200

202201
def _b32decode(alphabet, s, casefold=False, map01=None):
203-
global _b32rev
204202
# Delay the initialization of the table to not waste memory
205203
# if the function is never called
206204
if alphabet not in _b32rev:

0 commit comments

Comments
 (0)