[Neo-report] r2766 jm - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 30 16:14:47 CEST 2011
Author: jm
Date: Mon May 30 16:14:46 2011
New Revision: 2766
Log:
Remove debugging code and comment about possible optimization with Python >= 2.5
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] Mon May 30 16:14:46 2011
@@ -18,7 +18,6 @@
from cPickle import dumps, loads
from zlib import compress as real_compress, decompress
from neo.lib.locking import Empty
-from random import shuffle
import time
import os
@@ -833,7 +832,7 @@ class Application(object):
ttid = txn_context['ttid']
for partition, oid_list in partition_oid_dict.iteritems():
cell_list = getCellList(partition, readable=True)
- shuffle(cell_list)
+ # BBB: min(..., key=...) requires Python >= 2.5
cell_list.sort(key=getCellSortKey)
storage_conn = getConnForCell(cell_list[0])
storage_conn.ask(Packets.AskObjectUndoSerial(ttid,
More information about the Neo-report
mailing list