From: Romuald Brunet Date: Tue, 7 Nov 2023 22:32:44 +0000 (+0100) Subject: gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` ... X-Git-Tag: v3.13.0a2~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea970fb116a114f2c47cc8f21df00166d43ab78b;p=thirdparty%2FPython%2Fcpython.git gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` (GH-111785) Minor cleanup after commit 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31 --- diff --git a/Lib/base64.py b/Lib/base64.py index e233647ee766..e3e983b3064f 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: