From: Razvan Deaconescu Date: Fri, 20 Nov 2009 14:26:09 +0000 (+0200) Subject: updated iterator next method usage to work with python version < 2.6 X-Git-Tag: getopt_long~248 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=74aa52928012df9fc8137eae40fbcb5934536435;p=cs-p2p-next.git updated iterator next method usage to work with python version < 2.6 --- diff --git a/viewer/p2p-nexteditor.py b/viewer/p2p-nexteditor.py index 3833f85..f43aedf 100644 --- a/viewer/p2p-nexteditor.py +++ b/viewer/p2p-nexteditor.py @@ -47,7 +47,7 @@ class PlotterThread(Thread): stmit = stmc.getIter() while True: try: - stm = next(stmit) + stm = stmit.next() except StopIteration: break date1 = julianToDatetime(stm.timestamp)