X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/prospector
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
prospector
/
??
..
??
__init__.py
(0 B)
??
__main__.py
(71 B)
??
__pycache__
??
autodetect.py
(2.89 KB)
??
blender.py
(4.34 KB)
??
blender_combinations.yaml
(6.4 KB)
??
compat.py
(360 B)
??
config
??
encoding.py
(1.51 KB)
??
exceptions.py
(1.26 KB)
??
finder.py
(4.61 KB)
??
formatters
??
message.py
(2.67 KB)
??
pathutils.py
(1.28 KB)
??
postfilter.py
(2.18 KB)
??
profiles
??
run.py
(7.91 KB)
??
suppression.py
(4.36 KB)
??
tools
Editing: compat.py
from pathlib import Path def is_relative_to(relpath: Path, otherpath: Path) -> bool: # is_relative_to was only added to Path in Python 3.9 if hasattr(relpath, "is_relative_to"): return relpath.is_relative_to(otherpath) try: relpath.relative_to(otherpath) except ValueError: return False else: return True
Upload File
Create Folder