Commit 1cbeec85 authored by Jeremy Hylton's avatar Jeremy Hylton

fix two multi-argument appends for Python 2.0+ compatibility

parent 1f772b7a
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__version__ = "$Revision: 1.22 $"[11:-2] __version__ = "$Revision: 1.23 $"[11:-2]
import asyncore, socket, string, sys, os import asyncore, socket, string, sys, os
from smac import SizedMessageAsyncConnection from smac import SizedMessageAsyncConnection
...@@ -492,7 +492,7 @@ class ZEOConnection(SizedMessageAsyncConnection): ...@@ -492,7 +492,7 @@ class ZEOConnection(SizedMessageAsyncConnection):
if storage._transaction is not None: if storage._transaction is not None:
try: waiting=storage.__waiting try: waiting=storage.__waiting
except: waiting=storage.__waiting=[] except: waiting=storage.__waiting=[]
waiting.append(self.unlock, ()) waiting.append((self.unlock, ()))
return 1 # Return a flag indicating a lock condition. return 1 # Return a flag indicating a lock condition.
self._transaction=t=Transaction() self._transaction=t=Transaction()
...@@ -512,7 +512,7 @@ class ZEOConnection(SizedMessageAsyncConnection): ...@@ -512,7 +512,7 @@ class ZEOConnection(SizedMessageAsyncConnection):
else: else:
try: waiting=storage.__waiting try: waiting=storage.__waiting
except: waiting=storage.__waiting=[] except: waiting=storage.__waiting=[]
waiting.append(self.try_again_sync, (id, user, description, ext)) waiting.append((self.try_again_sync, (id, user, description, ext)))
return _noreturn return _noreturn
......
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