offlineimap: fix sqlite for Python 3.11

Close #40425
This commit is contained in:
Đoàn Trần Công Danh 2022-11-10 07:51:35 +07:00
parent 5d0ce8d6f8
commit 0e9e8686ae
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,25 @@
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__.

View File

@ -1,7 +1,7 @@
# Template file for 'offlineimap'
pkgname=offlineimap
version=8.0.0
revision=2
revision=3
build_style=python3-module
make_check_args="--ignore test/tests/test_00_imaputil.py
--ignore test/tests/test_01_basic.py --ignore test/tests/test_02_MappedIMAP.py"