mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Corrections (#1662)
* Address "SyntaxWarning: invalid escape sequence" * Correcttypo for CEC Blue button * Fix enablement when already open * Icons path corrected * Correct path and simplify command * Have enum class generalised * Address compile warnings * Update tinkerforce led_strip * Address compiler waring * Fix Install/Uninstall desktop- and icon file handling * Address "fatal: detected dubious ownership in repository" * platform fix * Test "fatal: detected dubious ownership in repository" * Update "fatal: detected dubious ownership in repository" * Update to Protobuf 25.1 * Update cmds with sudo * Update SEDU default baud rates * Replace deprecated Py_NoSiteFlag * Correct default config --------- Co-authored-by: Paulchen-Panther <16664240+Paulchen-Panther@users.noreply.github.com>
This commit is contained in:
@@ -224,7 +224,7 @@ class ValidatorMixin(object):
|
||||
properties is dispatched to ``validate_property`` methods. E.g., to
|
||||
implement a validator for a ``maximum`` property, create a
|
||||
``validate_maximum`` method. Validator methods should yield zero or more
|
||||
:exc:`ValidationError``\s to signal failed validation.
|
||||
:exc:`ValidationError``\\s to signal failed validation.
|
||||
|
||||
"""
|
||||
|
||||
@@ -1028,7 +1028,7 @@ if hasattr(socket, "inet_pton"):
|
||||
|
||||
@_checks_drafts(draft3="host-name", draft4="hostname")
|
||||
def is_host_name(instance):
|
||||
pattern = "^[A-Za-z0-9][A-Za-z0-9\.\-]{1,255}$"
|
||||
pattern = r"^[A-Za-z0-9][A-Za-z0-9.-]{1,255}$"
|
||||
if not re.match(pattern, instance):
|
||||
return False
|
||||
components = instance.split(".")
|
||||
|
Reference in New Issue
Block a user