patch-minidb_py 649 B

1234567891011121314151617
  1. $OpenBSD: patch-minidb_py,v 1.2 2017/01/06 10:45:20 sthen Exp $
  2. workaround https://bugs.python.org/issue28518
  3. also see https://bugs.python.org/issue10740
  4. --- minidb.py.orig Fri Jan 6 10:29:50 2017
  5. +++ minidb.py Fri Jan 6 10:31:03 2017
  6. @@ -131,7 +131,7 @@ class Store(object):
  7. MINIDB_ATTR = '_minidb'
  8. def __init__(self, filename=':memory:', debug=False, smartupdate=False):
  9. - self.db = sqlite3.connect(filename, check_same_thread=False)
  10. + self.db = sqlite3.connect(filename, check_same_thread=False, isolation_level=None)
  11. self.debug = debug
  12. self.smartupdate = smartupdate
  13. self.registered = {}