Updated common.py

Changed value name from 'NORMAL' to 'INFO'.
This commit is contained in:
Ethan Smith-Coss 2023-07-29 21:15:06 +01:00
parent 3083aa9b93
commit a03342d81c
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1

View File

@ -14,7 +14,7 @@ class LogLevel:
Higher `int` value means higher severity of level for logging.
"""
NORMAL = 0
INFO = 0
PASS = 1
DEBUG = 2
WARN = 3
@ -49,4 +49,4 @@ def is_path_spec(path_spec: str) -> bool:
## perform a regex match to ensure that the given path is a
## valid pathspec for the system.
return bool(re.match(__REGEX_PAT, path_spec.strip(r"\"'"))
or re.match(r'^[\w\d\-_\.]+$', path_spec.strip(r"\"'")))
or re.match(r'^[\w\d\-_\.]+$', path_spec.strip(r"\"'")))