From 7d8700e3e0a271a602944ef633876f01bf88e10f Mon Sep 17 00:00:00 2001
From: Franklin Bynum <franklin@bynumlaw.net>
Date: Thu, 8 Sep 2022 13:23:11 -0500
Subject: [PATCH] Fixes OfflineIMAP/offlineimap3#136

https://github.com/OfflineIMAP/offlineimap3/pull/137

Signed-off-by: Franklin Bynum <franklin@bynumlaw.net>
---
 offlineimap/folder/LocalStatusSQLite.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py
index a576b9ca..1699d492 100644
--- a/offlineimap/folder/LocalStatusSQLite.py
+++ b/offlineimap/folder/LocalStatusSQLite.py
@@ -104,7 +104,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
 
     def openfiles(self):
         # Make sure sqlite is in multithreading SERIALIZE mode.
-        assert sqlite.threadsafety == 1, 'Your sqlite is not multithreading safe.'
+        assert sqlite.threadsafety != 0, 'Your sqlite is not multithreading safe.'
 
         with self._databaseFileLock.getLock():
             # Try to establish connection, no need for threadsafety in __init__.
