Skip to content

Commit 44e0250

Browse files
committed
regex deprecation fixes
1 parent 1c83c43 commit 44e0250

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PyFlow/Core/Common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def extractDigitsFromEndOfString(string):
701701
:returns: Numbers in the final of the string
702702
:rtype: int
703703
"""
704-
result = re.search("(\d+)$", string)
704+
result = re.search(r"(\d+)$", string)
705705
if result is not None:
706706
return int(result.group(0))
707707

PyFlow/UI/Widgets/BlueprintCanvas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ def __init__(self, graphManager, pyFlowInstance, parent=None):
20792079
self.leCompoundName.setValidator(nameValidator)
20802080
self.leCompoundName.returnPressed.connect(self.onActiveCompoundNameAccepted)
20812081

2082-
rxLetters = QtCore.QRegularExpression('[a-zA-Z]+(\|[a-zA-Z]+)*')
2082+
rxLetters = QtCore.QRegularExpression(r'[a-zA-Z]+(\|[a-zA-Z]+)*')
20832083
categoryValidator = QtGui.QRegularExpressionValidator(rxLetters, self.leCompoundCategory)
20842084
self.leCompoundCategory.setValidator(categoryValidator)
20852085
self.leCompoundCategory.returnPressed.connect(

0 commit comments

Comments
 (0)