From 91fab40c7a33abfde5f40e7c8f0db174e114bd74 Mon Sep 17 00:00:00 2001 From: Bandung Date: Wed, 16 Aug 2023 13:09:18 -0400 Subject: [PATCH] Update blob.py Added notes that point to issue 257. This change is required in order for ZODB to be imported on termux's python implementation which has disables os.link due to compatibility issues with their win32 implementation. --- src/ZODB/blob.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ZODB/blob.py b/src/ZODB/blob.py index 68c146059..e46a961b6 100644 --- a/src/ZODB/blob.py +++ b/src/ZODB/blob.py @@ -949,6 +949,8 @@ def remove_committed_dir(path): try: link_or_copy = os.link except AttributeError: #pragma: no cover + # FBO termux on Android. + # See https://github.com/zopefoundation/ZODB/issues/257 link_or_copy = shutil.copy def find_global_Blob(module, class_):