Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > tap
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 | - | - | |
tests | Directory | - | - | |
__init__.py | File | 85 bytes | April 17 2025 13:10:58. | |
__main__.py | File | 48 bytes | April 17 2025 13:10:58. | |
adapter.py | File | 1509 bytes | April 17 2025 13:10:58. | |
directive.py | File | 1791 bytes | April 17 2025 13:10:58. | |
formatter.py | File | 762 bytes | April 17 2025 13:10:58. | |
line.py | File | 4673 bytes | April 17 2025 13:10:58. | |
loader.py | File | 2943 bytes | April 17 2025 13:10:58. | |
main.py | File | 2124 bytes | April 17 2025 13:10:58. | |
parser.py | File | 6787 bytes | April 17 2025 13:10:58. | |
rules.py | File | 3378 bytes | April 17 2025 13:10:58. | |
runner.py | File | 5066 bytes | April 17 2025 13:10:58. | |
tracker.py | File | 7576 bytes | April 17 2025 13:10:58. |
import re class Directive: """A representation of a result line directive.""" skip_pattern = re.compile( r"""^SKIP\S* (?P<whitespace>\s*) # Optional whitespace. (?P<reason>.*) # Slurp up the rest.""", re.IGNORECASE | re.VERBOSE, ) todo_pattern = re.compile( r"""^TODO\b # The directive name (?P<whitespace>\s*) # Immediately following must be whitespace. (?P<reason>.*) # Slurp up the rest.""", re.IGNORECASE | re.VERBOSE, ) def __init__(self, text): r"""Initialize the directive by parsing the text. The text is assumed to be everything after a '#\s*' on a result line. """ self._text = text self._skip = False self._todo = False self._reason = None match = self.skip_pattern.match(text) if match: self._skip = True self._reason = match.group("reason") match = self.todo_pattern.match(text) if match: if match.group("whitespace"): self._todo = True else: # Catch the case where the directive has no descriptive text. if match.group("reason") == "": self._todo = True self._reason = match.group("reason") @property def text(self): """Get the entire text.""" return self._text @property def skip(self): """Check if the directive is a SKIP type.""" return self._skip @property def todo(self): """Check if the directive is a TODO type.""" return self._todo @property def reason(self): """Get the reason for the directive.""" return self._reason
SILENT KILLER Tool