Skip to content

Commit 6a8a622

Browse files
tomchadwinnyalldawson
authored andcommittedJun 5, 2018
Processing: Avoid deprecated regex
Escape sequence avoided in DefinProjection by using raw string: `re.compile('\|.*')` > `re.compile(r'\|.*')`
1 parent 0e72384 commit 6a8a622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/qgis/DefineProjection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def processAlgorithm(self, parameters, context, feedback):
7575

7676
provider = layer.dataProvider()
7777
ds = provider.dataSourceUri()
78-
p = re.compile('\|.*')
78+
p = re.compile(r'\|.*')
7979
dsPath = p.sub('', ds)
8080

8181
if dsPath.lower().endswith('.shp'):

0 commit comments

Comments
 (0)
Please sign in to comment.