From 9780068548f13365a5f023a6054e5a4a967b134a Mon Sep 17 00:00:00 2001 From: Tom Chadwin Date: Tue, 5 Jun 2018 18:44:37 +0100 Subject: [PATCH] Avoid deprecated regex Avoid invalid escape sequence via raw string: `re.compile('^[^\s\(]+')` > `re.compile(r'^[^\s\(]+')` --- python/plugins/processing/algs/grass7/Grass7Algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/algs/grass7/Grass7Algorithm.py b/python/plugins/processing/algs/grass7/Grass7Algorithm.py index 054872942d0..79ae8f2ba76 100644 --- a/python/plugins/processing/algs/grass7/Grass7Algorithm.py +++ b/python/plugins/processing/algs/grass7/Grass7Algorithm.py @@ -105,7 +105,7 @@ class Grass7Algorithm(QgsProcessingAlgorithm): self._short_description = '' self._group = '' self._groupId = '' - self.groupIdRegex = re.compile('^[^\s\(]+') + self.groupIdRegex = re.compile(r'^[^\s\(]+') self.grass7Name = '' self.params = [] self.hardcodedStrings = []