##// END OF EJS Templates
Add next() for Python 2 compatibility.
Matthias Bussonnier -
Show More
@@ -787,6 +787,10 b' class ProgressBar(DisplayObject):'
787 return self.progress
787 return self.progress
788 else:
788 else:
789 raise StopIteration()
789 raise StopIteration()
790
791 def next(self):
792 """Python 2 compatibility"""
793 returun self.__next__()
790
794
791 class JSON(DisplayObject):
795 class JSON(DisplayObject):
792 """JSON expects a JSON-able dict or list
796 """JSON expects a JSON-able dict or list
General Comments 0
You need to be logged in to leave comments. Login now