$72 GRAYBYTE WORDPRESS FILE MANAGER $63

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python37/lib/python3.7/site-packages/jsonschema/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/jsonschema//compat.py
"""
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


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.37 AM
root / linksafe
0755
__pycache__
--
3 Mar 2024 11.11 PM
root / linksafe
0755
benchmarks
--
3 Mar 2024 11.11 PM
root / linksafe
0755
schemas
--
3 Mar 2024 11.11 PM
root / linksafe
0755
tests
--
3 Mar 2024 11.11 PM
root / linksafe
0755
__init__.py
0.912 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
__main__.py
0.038 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
_format.py
11.417 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
_legacy_validators.py
4.477 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
_reflect.py
4.905 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
_types.py
4.385 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
_utils.py
5.047 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
_validators.py
11.429 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
cli.py
2.256 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
compat.py
1.321 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
exceptions.py
10.205 KB
14 Nov 2023 1.06 PM
root / linksafe
0644
validators.py
28.711 KB
14 Nov 2023 1.06 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF