mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Make regex pattern a raw str to prevent "invalid escape sequence" warning
This commit is contained in:
parent
d1526a4054
commit
260743d842
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class ObjectsModel(ListModel):
|
||||||
self._group_name_template = catalog.i18nc("@label", "Group #{group_nr}")
|
self._group_name_template = catalog.i18nc("@label", "Group #{group_nr}")
|
||||||
self._group_name_prefix = self._group_name_template.split("#")[0]
|
self._group_name_prefix = self._group_name_template.split("#")[0]
|
||||||
|
|
||||||
self._naming_regex = re.compile("^(.+)\(([0-9]+)\)$")
|
self._naming_regex = re.compile(r"^(.+)\(([0-9]+)\)$")
|
||||||
|
|
||||||
def setActiveBuildPlate(self, nr: int) -> None:
|
def setActiveBuildPlate(self, nr: int) -> None:
|
||||||
if self._build_plate_number != nr:
|
if self._build_plate_number != nr:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue