OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
wheel
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:26:52 AM
rwxrwxr-x
📄
__init__.py
23 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
__main__.py
417 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📁
__pycache__
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
bdist_wheel.py
18.63 KB
10/28/2024 05:59:06 AM
rw-r--r--
📁
cli
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
macosx_libfile.py
15.56 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
metadata.py
4.24 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
pkginfo.py
1.23 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
util.py
938 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📁
vendored
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
wheelfile.py
7.4 KB
10/28/2024 05:59:06 AM
rw-r--r--
Editing: util.py
Close
import base64 import io import sys if sys.version_info[0] < 3: text_type = unicode # noqa: F821 StringIO = io.BytesIO def native(s, encoding='utf-8'): if isinstance(s, unicode): # noqa: F821 return s.encode(encoding) return s else: text_type = str StringIO = io.StringIO def native(s, encoding='utf-8'): if isinstance(s, bytes): return s.decode(encoding) return s def urlsafe_b64encode(data): """urlsafe_b64encode without padding""" return base64.urlsafe_b64encode(data).rstrip(b'=') def urlsafe_b64decode(data): """urlsafe_b64decode without padding""" pad = b'=' * (4 - (len(data) & 3)) return base64.urlsafe_b64decode(data + pad) def as_unicode(s): if isinstance(s, bytes): return s.decode('utf-8') return s def as_bytes(s): if isinstance(s, text_type): return s.encode('utf-8') return s