python3: add raw prefix to sqlite isolation level
authorRaphaël Gomès <rgomes@octobus.net>
Tue, 06 Aug 2019 11:35:09 +0200
changeset 4811 e1dc374909bd
parent 4810 03690f8d2b0a
child 4812 67567d7f1174
python3: add raw prefix to sqlite isolation level
hgext3rd/evolve/obsdiscovery.py
hgext3rd/evolve/stablerangecache.py
--- a/hgext3rd/evolve/obsdiscovery.py	Tue Aug 06 11:34:31 2019 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py	Tue Aug 06 11:35:09 2019 +0200
@@ -495,7 +495,7 @@
         except OSError:
             return None
         con = sqlite3.connect(encoding.strfromlocal(self._path), timeout=30,
-                              isolation_level="IMMEDIATE")
+                              isolation_level=r"IMMEDIATE")
         con.text_factory = bytes
         return con
 
--- a/hgext3rd/evolve/stablerangecache.py	Tue Aug 06 11:34:31 2019 +0200
+++ b/hgext3rd/evolve/stablerangecache.py	Tue Aug 06 11:35:09 2019 +0200
@@ -240,7 +240,7 @@
         except OSError:
             return None
         con = sqlite3.connect(encoding.strfromlocal(self._path), timeout=30,
-                              isolation_level="IMMEDIATE")
+                              isolation_level=r"IMMEDIATE")
         con.text_factory = bytes
         return con