Skip to content

Commit

Permalink
pythongh-61199: Remove superfluous global statements from `base64._b3…
Browse files Browse the repository at this point in the history
…2{en,de}code()*` (pythonGH-111785)

Minor cleanup after commit 4ce6faa
  • Loading branch information
romuald authored Nov 7, 2023
1 parent f115a55 commit ea970fb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Lib/base64.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def urlsafe_b64decode(s):
_b32rev = {}

def _b32encode(alphabet, s):
global _b32tab2
# Delay the initialization of the table to not waste memory
# if the function is never called
if alphabet not in _b32tab2:
Expand Down Expand Up @@ -200,7 +199,6 @@ def _b32encode(alphabet, s):
return bytes(encoded)

def _b32decode(alphabet, s, casefold=False, map01=None):
global _b32rev
# Delay the initialization of the table to not waste memory
# if the function is never called
if alphabet not in _b32rev:
Expand Down

0 comments on commit ea970fb

Please sign in to comment.