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