Skip to content
Permalink
Browse files

Processing: Avoid deprecated regex

Escape sequence avoided in DefinProjection by using raw string:

`re.compile('\|.*')` > `re.compile(r'\|.*')`
  • Loading branch information
tomchadwin authored and nyalldawson committed Jun 5, 2018
1 parent 0e72384 commit 6a8a622ea47ea2021ee5bd62b1c136c939142db0
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/DefineProjection.py
@@ -75,7 +75,7 @@ def processAlgorithm(self, parameters, context, feedback):

provider = layer.dataProvider()
ds = provider.dataSourceUri()
p = re.compile('\|.*')
p = re.compile(r'\|.*')
dsPath = p.sub('', ds)

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

0 comments on commit 6a8a622

Please sign in to comment.
You can’t perform that action at this time.