Skip to content

Commit ec90934

Browse files
romualdhugovk
authored andcommitted
pythongh-61199: Remove superfluous global statements from base64._b32{en,de}code()* (pythonGH-111785)
Minor cleanup after commit 4ce6faa
1 parent 72e49f0 commit ec90934

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)