py.lib
5:f5082aa9fe60
Go to Latest
py.lib/awNet/webapp/tool/url.py
* Делаем скрипт автономней
1 # -*- coding: utf-8 -*-
3 # Инструменты для работы с URL
5 from base64 import urlsafe_b64encode as _b64e, urlsafe_b64decode as _b64d
6 from urllib.parse import quote as urlquote
9 return _b64e(buf.encode('UTF-8')).decode('UTF-8')
12 return _b64d(buf.encode('UTF-8')).decode('UTF-8')