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])`
This commit is contained in:
Tom Chadwin 2018-06-05 18:38:08 +01:00 committed by Nyall Dawson
parent 6a8a622ea4
commit fab563fe71

View File

@ -66,7 +66,7 @@ class GeoDB:
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]: