$85 GRAYBYTE WORDPRESS FILE MANAGER $13

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

/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/

HOME
Current File : /opt/imunify360/venv/lib/python3.11/site-packages/jinja2//_compat.py
# -*- coding: utf-8 -*-
# flake8: noqa
import marshal
import sys

PY2 = sys.version_info[0] == 2
PYPY = hasattr(sys, "pypy_translation_info")
_identity = lambda x: x

if not PY2:
    unichr = chr
    range_type = range
    text_type = str
    string_types = (str,)
    integer_types = (int,)

    iterkeys = lambda d: iter(d.keys())
    itervalues = lambda d: iter(d.values())
    iteritems = lambda d: iter(d.items())

    import pickle
    from io import BytesIO, StringIO

    NativeStringIO = StringIO

    def reraise(tp, value, tb=None):
        if value.__traceback__ is not tb:
            raise value.with_traceback(tb)
        raise value

    ifilter = filter
    imap = map
    izip = zip
    intern = sys.intern

    implements_iterator = _identity
    implements_to_string = _identity
    encode_filename = _identity

    marshal_dump = marshal.dump
    marshal_load = marshal.load

else:
    unichr = unichr
    text_type = unicode
    range_type = xrange
    string_types = (str, unicode)
    integer_types = (int, long)

    iterkeys = lambda d: d.iterkeys()
    itervalues = lambda d: d.itervalues()
    iteritems = lambda d: d.iteritems()

    import cPickle as pickle
    from cStringIO import StringIO as BytesIO, StringIO

    NativeStringIO = BytesIO

    exec("def reraise(tp, value, tb=None):\n raise tp, value, tb")

    from itertools import imap, izip, ifilter

    intern = intern

    def implements_iterator(cls):
        cls.next = cls.__next__
        del cls.__next__
        return cls

    def implements_to_string(cls):
        cls.__unicode__ = cls.__str__
        cls.__str__ = lambda x: x.__unicode__().encode("utf-8")
        return cls

    def encode_filename(filename):
        if isinstance(filename, unicode):
            return filename.encode("utf-8")
        return filename

    def marshal_dump(code, f):
        if isinstance(f, file):
            marshal.dump(code, f)
        else:
            f.write(marshal.dumps(code))

    def marshal_load(f):
        if isinstance(f, file):
            return marshal.load(f)
        return marshal.loads(f.read())


def with_metaclass(meta, *bases):
    """Create a base class with a metaclass."""
    # This requires a bit of explanation: the basic idea is to make a
    # dummy metaclass for one level of class instantiation that replaces
    # itself with the actual metaclass.
    class metaclass(type):
        def __new__(cls, name, this_bases, d):
            return meta(name, bases, d)

    return type.__new__(metaclass, "temporary_class", (), {})


try:
    from urllib.parse import quote_from_bytes as url_quote
except ImportError:
    from urllib import quote as url_quote


try:
    from collections import abc
except ImportError:
    import collections as abc


try:
    from os import fspath
except ImportError:
    try:
        from pathlib import PurePath
    except ImportError:
        PurePath = None

    def fspath(path):
        if hasattr(path, "__fspath__"):
            return path.__fspath__()

        # Python 3.5 doesn't have __fspath__ yet, use str.
        if PurePath is not None and isinstance(path, PurePath):
            return str(path)

        return path


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2026 8.59 AM
root / root
0755
__pycache__
--
3 Mar 2026 8.59 AM
root / root
0755
__init__.py
1.513 KB
13 Feb 2026 12.40 PM
root / root
0644
_compat.py
3.116 KB
13 Feb 2026 12.40 PM
root / root
0644
_identifier.py
1.733 KB
13 Feb 2026 12.40 PM
root / root
0644
asyncfilters.py
4.15 KB
13 Feb 2026 12.40 PM
root / root
0644
asyncsupport.py
7.04 KB
13 Feb 2026 12.40 PM
root / root
0644
bccache.py
11.854 KB
13 Feb 2026 12.40 PM
root / root
0644
compiler.py
64.73 KB
13 Feb 2026 12.40 PM
root / root
0644
constants.py
1.424 KB
13 Feb 2026 12.40 PM
root / root
0644
debug.py
8.329 KB
13 Feb 2026 12.40 PM
root / root
0644
defaults.py
1.1 KB
13 Feb 2026 12.40 PM
root / root
0644
environment.py
49.442 KB
13 Feb 2026 12.40 PM
root / root
0644
exceptions.py
5.298 KB
13 Feb 2026 12.40 PM
root / root
0644
ext.py
25.821 KB
13 Feb 2026 12.40 PM
root / root
0644
filters.py
40.444 KB
13 Feb 2026 12.40 PM
root / root
0644
idtracking.py
8.995 KB
13 Feb 2026 12.40 PM
root / root
0644
lexer.py
29.62 KB
13 Feb 2026 12.40 PM
root / root
0644
loaders.py
17.252 KB
13 Feb 2026 12.40 PM
root / root
0644
meta.py
4.034 KB
13 Feb 2026 12.40 PM
root / root
0644
nativetypes.py
2.688 KB
13 Feb 2026 12.40 PM
root / root
0644
nodes.py
30.366 KB
13 Feb 2026 12.40 PM
root / root
0644
optimizer.py
1.423 KB
13 Feb 2026 12.40 PM
root / root
0644
parser.py
34.824 KB
13 Feb 2026 12.40 PM
root / root
0644
runtime.py
29.9 KB
13 Feb 2026 12.40 PM
root / root
0644
sandbox.py
16.726 KB
13 Feb 2026 12.40 PM
root / root
0644
tests.py
4.687 KB
13 Feb 2026 12.40 PM
root / root
0644
utils.py
21.994 KB
13 Feb 2026 12.40 PM
root / root
0644
visitor.py
3.164 KB
13 Feb 2026 12.40 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF