changeset 4811:e1dc374909bd

python3: add raw prefix to sqlite isolation level
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 06 Aug 2019 11:35:09 +0200
parents 03690f8d2b0a
children 67567d7f1174
files hgext3rd/evolve/obsdiscovery.py hgext3rd/evolve/stablerangecache.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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