]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
Revert BaseTools: PYTHON3 migration
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / WorkspaceDatabase.py
index fdf7738a3105be2afe769e925f68349778d5c6b1..3bb287b8b24c69a3480a0226e2a7167548e06cf7 100644 (file)
@@ -15,6 +15,7 @@
 ##\r
 # Import Modules\r
 #\r
+from __future__ import absolute_import\r
 import sqlite3\r
 from Common.StringUtils import *\r
 from Common.DataType import *\r
@@ -164,7 +165,7 @@ class WorkspaceDatabase(object):
                 os.remove(DbPath)\r
 \r
         # create db with optimized parameters\r
-        self.Conn = sqlite3.connect(DbPath, isolation_level=None)\r
+        self.Conn = sqlite3.connect(DbPath, isolation_level='DEFERRED')\r
         self.Conn.execute("PRAGMA synchronous=OFF")\r
         self.Conn.execute("PRAGMA temp_store=MEMORY")\r
         self.Conn.execute("PRAGMA count_changes=OFF")\r