[Zodb-checkins] CVS: ZODB3/ZODB - FileStorage.py:1.105.2.15
Jeremy Hylton
jeremy at zope.com
Wed Apr 30 16:10:14 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv20557
Modified Files:
Tag: ZODB3-3_1-branch
FileStorage.py
Log Message:
Look for fsync() in os module.
Windows will have fsync() starting with 2.2.3.
=== ZODB3/ZODB/FileStorage.py 1.105.2.14 => 1.105.2.15 ===
--- ZODB3/ZODB/FileStorage.py:1.105.2.14 Mon Mar 17 13:59:57 2003
+++ ZODB3/ZODB/FileStorage.py Wed Apr 30 15:10:13 2003
@@ -127,10 +127,8 @@
from types import StringType
from struct import pack, unpack
-try:
- from posix import fsync
-except:
- fsync = None
+# Not all platforms have fsync
+fsync = getattr(os, "fsync", None)
from ZODB import BaseStorage, ConflictResolution, POSException
from ZODB.POSException import UndoError, POSKeyError
More information about the Zodb-checkins
mailing list