aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/pyside2/PySide2/support/generate_pyi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/PySide2/support/generate_pyi.py b/sources/pyside2/PySide2/support/generate_pyi.py
index 7a2c79ba2..bd3e7500a 100644
--- a/sources/pyside2/PySide2/support/generate_pyi.py
+++ b/sources/pyside2/PySide2/support/generate_pyi.py
@@ -159,7 +159,7 @@ class Formatter(Writer):
def _function(self, func_name, signature, spaces):
# this would be nicer to get somehow together with the signature
- is_meth = re.match("\((\w*)", str(signature)).group(1) == "self"
+ is_meth = re.match(r"\((\w*)", str(signature)).group(1) == "self"
if self.class_name and not is_meth:
self.print('{spaces}@staticmethod'.format(**locals()))
self.print('{spaces}def {func_name}{signature}: ...'.format(**locals()))