OXIESEC PANEL
- Current Dir:
/
/
snap
/
core20
/
2599
/
usr
/
lib
/
python3
/
dist-packages
/
jsonschema
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
__init__.py
934 bytes
11/18/2019 12:36:14 PM
rw-r--r--
📄
__main__.py
39 bytes
11/18/2019 12:36:14 PM
rw-r--r--
📁
__pycache__
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
_format.py
11.42 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
_legacy_validators.py
4.48 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
_reflect.py
4.91 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
_types.py
4.38 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
_utils.py
5.05 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
_validators.py
11.43 KB
11/18/2019 12:36:14 PM
rw-r--r--
📁
benchmarks
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
cli.py
2.26 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
compat.py
1.32 KB
11/18/2019 12:36:14 PM
rw-r--r--
📄
exceptions.py
10.21 KB
11/18/2019 12:36:14 PM
rw-r--r--
📁
schemas
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📁
tests
-
05/26/2025 10:13:33 PM
rwxr-xr-x
📄
validators.py
28.71 KB
11/18/2019 12:36:14 PM
rw-r--r--
Editing: compat.py
Close
""" Python 2/3 compatibility helpers. Note: This module is *not* public API. """ import contextlib import operator import sys try: from collections.abc import MutableMapping, Sequence # noqa except ImportError: from collections import MutableMapping, Sequence # noqa PY3 = sys.version_info[0] >= 3 if PY3: zip = zip from functools import lru_cache from io import StringIO as NativeIO from urllib.parse import ( unquote, urljoin, urlunsplit, SplitResult, urlsplit ) from urllib.request import pathname2url, urlopen str_types = str, int_types = int, iteritems = operator.methodcaller("items") else: from itertools import izip as zip # noqa from io import BytesIO as NativeIO from urlparse import urljoin, urlunsplit, SplitResult, urlsplit from urllib import pathname2url, unquote # noqa import urllib2 # noqa def urlopen(*args, **kwargs): return contextlib.closing(urllib2.urlopen(*args, **kwargs)) str_types = basestring int_types = int, long iteritems = operator.methodcaller("iteritems") from functools32 import lru_cache def urldefrag(url): if "#" in url: s, n, p, q, frag = urlsplit(url) defrag = urlunsplit((s, n, p, q, "")) else: defrag = url frag = "" return defrag, frag # flake8: noqa