Commit 0b9bb581 authored by Guido van Rossum's avatar Guido van Rossum

pack()'s 'wait' argument is a boolean, not an object, so test it using

"if wait" rather than "if wait is not None".  Also change the default
to 0.
parent da28b620
......@@ -249,8 +249,8 @@ class ZEOStorage:
def endZeoVerify(self):
self.client.endVerify()
def pack(self, time, wait=None):
if wait is not None:
def pack(self, time, wait=0):
if wait:
return run_in_thread(self.pack_impl, time)
else:
# If the client isn't waiting for a reply, start a thread
......
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