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:
LordGrey
2023-12-03 21:23:31 +01:00
committed by GitHub
parent 6b8c0dbcce
commit 0fce43840c
26 changed files with 2228 additions and 673 deletions

View File

@@ -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(".")