]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` ...
authorRomuald Brunet <romuald@chivil.com>
Tue, 7 Nov 2023 22:32:44 +0000 (23:32 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Nov 2023 22:32:44 +0000 (16:32 -0600)
Minor cleanup after commit 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31

Lib/base64.py

index e233647ee76639abc96bebe161cd9095095beda6..e3e983b3064fe7bd80685ca759bc7a12f5b26233 100755 (executable)
@@ -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: