summaryrefslogtreecommitdiffstats
path: root/Lib/base64.py
diff options
context:
space:
mode:
authorRomuald Brunet <romuald@chivil.com>2023-11-07 22:32:44 (GMT)
committerGitHub <noreply@github.com>2023-11-07 22:32:44 (GMT)
commitea970fb116a114f2c47cc8f21df00166d43ab78b (patch)
tree7418da92d1df1db7473ed2873d59fe0363bcce4a /Lib/base64.py
parentf115a55f0e455a4b43a1da9fd838a60a101f182a (diff)
downloadcpython-ea970fb116a114f2c47cc8f21df00166d43ab78b.zip
cpython-ea970fb116a114f2c47cc8f21df00166d43ab78b.tar.gz
cpython-ea970fb116a114f2c47cc8f21df00166d43ab78b.tar.bz2
gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` (GH-111785)
Minor cleanup after commit 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31
Diffstat (limited to 'Lib/base64.py')
-rwxr-xr-xLib/base64.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index e233647..e3e983b 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -164,7 +164,6 @@ _b32tab2 = {}
_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:
@@ -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: