From ea970fb116a114f2c47cc8f21df00166d43ab78b Mon Sep 17 00:00:00 2001 From: Romuald Brunet Date: Tue, 7 Nov 2023 23:32:44 +0100 Subject: gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` (GH-111785) Minor cleanup after commit 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31 --- Lib/base64.py | 2 -- 1 file changed, 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: -- cgit v0.12