From 267abecaea12943d9a9e01376876ac5e6bf97f2e Mon Sep 17 00:00:00 2001 From: Romuald Brunet Date: Mon, 6 Nov 2023 16:24:48 +0100 Subject: [PATCH] Lib/base64.py: remove useless global statements Remove now useless "global" statements from the base32 encode / decode methods None values where changed to a global dict by 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31 --- Lib/base64.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/base64.py b/Lib/base64.py index e233647ee76639..e3e983b3064fe7 100755 --- a/Lib/base64.py +++ b/Lib/base64.py @@ -164,7 +164,6 @@ def urlsafe_b64decode(s): _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: