OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
itsdangerous
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/19/2021 04:38:27 PM
rwxrwxr-x
📄
__init__.py
993 bytes
09/19/2021 04:38:25 PM
rw-r--r--
📁
__pycache__
-
09/19/2021 04:38:27 PM
rwxr-xr-x
📄
_json.py
918 bytes
09/19/2021 04:38:25 PM
rw-r--r--
📄
encoding.py
1.37 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
exc.py
3.13 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
jws.py
7.95 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
py.typed
0 bytes
09/19/2021 04:38:25 PM
rw-r--r--
📄
serializer.py
10.88 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
signer.py
9.15 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
timed.py
7.67 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
url_safe.py
2.33 KB
09/19/2021 04:38:25 PM
rw-r--r--
Editing: _json.py
Close
import json as _json import typing as _t from types import ModuleType class _CompactJSON: """Wrapper around json module that strips whitespace.""" @staticmethod def loads(payload: _t.Union[str, bytes]) -> _t.Any: return _json.loads(payload) @staticmethod def dumps(obj: _t.Any, **kwargs: _t.Any) -> str: kwargs.setdefault("ensure_ascii", False) kwargs.setdefault("separators", (",", ":")) return _json.dumps(obj, **kwargs) class DeprecatedJSON(ModuleType): def __getattribute__(self, item: str) -> _t.Any: import warnings warnings.warn( "Importing 'itsdangerous.json' is deprecated and will be" " removed in ItsDangerous 2.1. Use Python's 'json' module" " instead.", DeprecationWarning, stacklevel=2, ) return getattr(_json, item) json = DeprecatedJSON("json")