Commit 1a0f448e authored by Jim Fulton's avatar Jim Fulton

Merge remote-tracking branch 'origin/master' into no-more-load

parents d90a0243 ee5a462b
...@@ -154,10 +154,10 @@ setup(name="ZODB", ...@@ -154,10 +154,10 @@ setup(name="ZODB",
'test': tests_require, 'test': tests_require,
}, },
install_requires = [ install_requires = [
'persistent >= 4.1.0', 'persistent >= 4.2.0',
'BTrees >= 4.2.0', 'BTrees >= 4.2.0',
'ZConfig', 'ZConfig',
'transaction >= 1.4.4', 'transaction >= 1.5.0',
'six', 'six',
'zc.lockfile', 'zc.lockfile',
'zope.interface', 'zope.interface',
......
...@@ -25,7 +25,6 @@ from struct import pack ...@@ -25,7 +25,6 @@ from struct import pack
from struct import unpack from struct import unpack
from persistent.TimeStamp import TimeStamp from persistent.TimeStamp import TimeStamp
from six import PY3
from six import string_types as STRING_TYPES from six import string_types as STRING_TYPES
from zc.lockfile import LockFile from zc.lockfile import LockFile
from zope.interface import alsoProvides from zope.interface import alsoProvides
...@@ -2103,13 +2102,10 @@ class FilePool: ...@@ -2103,13 +2102,10 @@ class FilePool:
This is required if they contain data of rolled back transactions. This is required if they contain data of rolled back transactions.
""" """
# Unfortunately, Python 3.x has no API to flush read buffers, and
# the API is ineffective in Python 2 on Mac OS X.
with self.write_lock(): with self.write_lock():
if PY3: self.empty()
# Unfortunately, Python 3.x has no API to flush read buffers.
self.empty()
else:
for f in self._files:
f.flush()
def close(self): def close(self):
with self._cond: with self._cond:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment