]> p2p-next.cs.pub.ro Git - cs-p2p-next.git/commitdiff
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 3833f858cd9f1e36c0ff4fe4a5e0307bd53736e0..f43aedfcb680e93f6c61b74b6cc893b358051947 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)