Read about our upcoming Code of Conduct on this issue

Commit 8ad1e1aa authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

python3: add raw prefix to sqlite isolation level

parent 03690f8d2b0a
......@@ -495,7 +495,7 @@ class _obshashcache(obscache.dualsourcecache):
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
......
......@@ -240,7 +240,7 @@ class stablerangesqlbase(stablerange.stablerangecached):
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment