updated iterator next method usage to work with python version < 2.6
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 20 Nov 2009 14:26:09 +0000 (16:26 +0200)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 20 Nov 2009 14:26:09 +0000 (16:26 +0200)
viewer/p2p-nexteditor.py

index 3833f85..f43aedf 100644 (file)
@@ -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)