PHP 8.2.30
Preview: compat.py Size: 1.07 KB
//proc/self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/pylint_django/compat.py

# flake8: noqa
# pylint: skip-file
# no sane linter can figure out the hackiness in this compatability layer...

try:
    from astroid.nodes import AssignName, Attribute, ClassDef, FunctionDef, ImportFrom
except ImportError:
    from astroid.nodes import AssName as AssignName
    from astroid.nodes import Class as ClassDef
    from astroid.nodes import From as ImportFrom
    from astroid.nodes import Function as FunctionDef
    from astroid.nodes import Getattr as Attribute

# pylint 2.04->2.2 : YES was renamed to Uninferable, then YES became deprecated, then was removed
try:
    from astroid.bases import YES as Uninferable
except ImportError:
    try:
        from astroid.util import YES as Uninferable
    except ImportError:
        from astroid.util import Uninferable

import pylint

# pylint before version 2.3 does not support load_configuration() hook.
LOAD_CONFIGURATION_SUPPORTED = False
try:
    LOAD_CONFIGURATION_SUPPORTED = tuple(pylint.__version__.split(".")) >= ("2", "3")
except AttributeError:
    LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)

Directory Contents

Dirs: 5 × Files: 5

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
checkers DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
tests DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
1.07 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.48 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.15 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
393 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
28 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).