Skip to content
Permalink
Browse files

Processing: avoid deprecated regex

Invalid escape sequence avoided via raw string:

`re.findall("\d+|[a-zA-Z]+", rep[0][0])` > `re.findall(r"\d+|[a-zA-Z]+", rep[0][0])`
  • Loading branch information
tomchadwin authored and nyalldawson committed Jun 5, 2018
1 parent 6a8a622 commit fab563fe7152c7765c9dce6e021c07304e7408c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/spatialite.py
@@ -66,7 +66,7 @@ def init_spatialite(self):
try:
self._exec_sql(c, u'SELECT spatialite_version()')
rep = c.fetchall()
v = [int(x) if x.isdigit() else x for x in re.findall("\d+|[a-zA-Z]+", rep[0][0])]
v = [int(x) if x.isdigit() else x for x in re.findall(r"\d+|[a-zA-Z]+", rep[0][0])]

# Add SpatiaLite support
if v >= [4, 1, 0]:

0 comments on commit fab563f

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