Skip to content

Commit

Permalink
make stub for StopAsyncIteration if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Sep 15, 2015
1 parent 55aa36c commit a5e4403
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aioodbc/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
__all__ = ['Cursor']


try:
StopAsyncIteration
except NameError:
class StopAsyncIteration(Exception):
"""Just stab for StopAsyncIteration from python 3.5"""
pass


class Cursor:

def __init__(self, pyodbc_cursor, connection, echo=False):
Expand Down

0 comments on commit a5e4403

Please sign in to comment.