[Neo-report] r1998 vincent - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 7 16:41:48 CEST 2010
Author: vincent
Date: Wed Apr 7 16:41:47 2010
New Revision: 1998
Log:
Import time module, not just its sleep method.
Modified:
trunk/neo/client/app.py
Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Wed Apr 7 16:41:47 2010
@@ -20,7 +20,7 @@
from zlib import compress as real_compress, decompress
from neo.locking import Queue, Empty
from random import shuffle
-from time import sleep
+import time
from ZODB.POSException import UndoError, StorageTransactionError, ConflictError
from ZODB.ConflictResolution import ResolvedSerial
@@ -310,7 +310,7 @@
try:
self.trying_master_node = master_list[index]
except IndexError:
- sleep(1)
+ time.sleep(1)
index = 0
self.trying_master_node = master_list[0]
index += 1
@@ -355,7 +355,7 @@
break
if conn.getUUID() is None:
# Node identification was refused by master.
- sleep(1)
+ time.sleep(1)
if self.uuid is not None:
msg_id = conn.ask(Packets.AskNodeInformation())
self._waitMessage(conn, msg_id,
More information about the Neo-report
mailing list