mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
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:
parent
6a8a622ea4
commit
fab563fe71
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user