Commits

Kirill Simonov  committed c651dbb

Fixed 2.5 incompatibility.

  • Participants
  • Parent commits 6532c1a

Comments (0)

Files changed (1)

File src/htsql/connect.py

         iterator = iter(self.cursor)
         while True:
             with self.guard:
-                row = next(iterator, None)
+                try:
+                    row = iterator.next()
+                except StopIteration:
+                    row = None
             if row is None:
                 break
             yield row