Navigation Menu

Skip to content

Commit

Permalink
Avoid deprecated regex
Browse files Browse the repository at this point in the history
Avoid invalid escape sequence via raw string:

`re.compile('^[^\s\(]+')` > `re.compile(r'^[^\s\(]+')`
  • Loading branch information
tomchadwin authored and nyalldawson committed Jun 5, 2018
1 parent fab563f commit 9780068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -105,7 +105,7 @@ def __init__(self, descriptionfile):
self._short_description = ''
self._group = ''
self._groupId = ''
self.groupIdRegex = re.compile('^[^\s\(]+')
self.groupIdRegex = re.compile(r'^[^\s\(]+')
self.grass7Name = ''
self.params = []
self.hardcodedStrings = []
Expand Down

0 comments on commit 9780068

Please sign in to comment.