Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > > site-packages > pydocstyle
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
data | Directory | - | - | |
__init__.py | File | 194 bytes | April 17 2025 13:10:58. | |
__main__.py | File | 288 bytes | April 17 2025 13:10:58. | |
_version.py | File | 400 bytes | April 17 2025 13:10:58. | |
checker.py | File | 44884 bytes | April 17 2025 13:10:58. | |
cli.py | File | 2993 bytes | April 17 2025 13:10:58. | |
config.py | File | 33488 bytes | April 17 2025 13:10:58. | |
parser.py | File | 28291 bytes | April 17 2025 13:10:58. | |
utils.py | File | 1291 bytes | April 17 2025 13:10:58. | |
violations.py | File | 12411 bytes | April 17 2025 13:10:58. | |
wordlists.py | File | 1548 bytes | April 17 2025 13:10:58. |
"""General shared utilities.""" import logging import re from itertools import tee, zip_longest from typing import Any, Iterable, Tuple # Do not update the version manually - it is managed by `bumpversion`. log = logging.getLogger(__name__) #: Regular expression for stripping non-alphanumeric characters NON_ALPHANUMERIC_STRIP_RE = re.compile(r'[\W_]+') def is_blank(string: str) -> bool: """Return True iff the string contains only whitespaces.""" return not string.strip() def pairwise( iterable: Iterable, default_value: Any, ) -> Iterable[Tuple[Any, Any]]: """Return pairs of items from `iterable`. pairwise([1, 2, 3], default_value=None) -> (1, 2) (2, 3), (3, None) """ a, b = tee(iterable) _ = next(b, default_value) return zip_longest(a, b, fillvalue=default_value) def common_prefix_length(a: str, b: str) -> int: """Return the length of the longest common prefix of a and b. >>> common_prefix_length('abcd', 'abce') 3 """ for common, (ca, cb) in enumerate(zip(a, b)): if ca != cb: return common return min(len(a), len(b)) def strip_non_alphanumeric(string: str) -> str: """Strip string from any non-alphanumeric characters.""" return NON_ALPHANUMERIC_STRIP_RE.sub('', string)
SILENT KILLER Tool