mirror of https://github.com/python/cpython
gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` (GH-111785)
Minor cleanup after commit 4ce6faa6c9
This commit is contained in:
parent
f115a55f0e
commit
ea970fb116
|
@ -164,7 +164,6 @@ _b32tab2 = {}
|
||||||
_b32rev = {}
|
_b32rev = {}
|
||||||
|
|
||||||
def _b32encode(alphabet, s):
|
def _b32encode(alphabet, s):
|
||||||
global _b32tab2
|
|
||||||
# Delay the initialization of the table to not waste memory
|
# Delay the initialization of the table to not waste memory
|
||||||
# if the function is never called
|
# if the function is never called
|
||||||
if alphabet not in _b32tab2:
|
if alphabet not in _b32tab2:
|
||||||
|
@ -200,7 +199,6 @@ def _b32encode(alphabet, s):
|
||||||
return bytes(encoded)
|
return bytes(encoded)
|
||||||
|
|
||||||
def _b32decode(alphabet, s, casefold=False, map01=None):
|
def _b32decode(alphabet, s, casefold=False, map01=None):
|
||||||
global _b32rev
|
|
||||||
# Delay the initialization of the table to not waste memory
|
# Delay the initialization of the table to not waste memory
|
||||||
# if the function is never called
|
# if the function is never called
|
||||||
if alphabet not in _b32rev:
|
if alphabet not in _b32rev:
|
||||||
|
|
Loading…
Reference in New Issue