py.lib
2022-08-14
Parent:4186c3b229fa
py.lib/webapp/url.py
+ Возможность обработки параметров конфигурации перед добавлением в класс конфигурации . Переформатирование части кода по PEP
1.1 --- a/webapp/url.py Sat Aug 13 20:06:47 2022 +0300 1.2 +++ b/webapp/url.py Sun Aug 14 12:19:08 2022 +0300 1.3 @@ -5,8 +5,10 @@ 1.4 from base64 import urlsafe_b64encode as _b64e, urlsafe_b64decode as _b64d 1.5 from urllib.parse import quote as urlquote 1.6 1.7 + 1.8 def encode(buf): 1.9 - return _b64e(buf.encode('UTF-8')).decode('UTF-8') 1.10 - 1.11 + return _b64e(buf.encode('UTF-8')).decode('UTF-8') 1.12 + 1.13 + 1.14 def decode(buf): 1.15 - return _b64d(buf.encode('UTF-8')).decode('UTF-8') 1.16 + return _b64d(buf.encode('UTF-8')).decode('UTF-8')