Skip to content

Commit 8ef840f

Browse files
Askaholicterrycain
authored andcommitted
Fix legacy __aiter__ methods (#403)
* Fix __aiter__. This breaks compatibility with python < 3.5.2 * [#386] Update dependencies in docs
1 parent 131fb9f commit 8ef840f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Requirements
115115

116116

117117
.. _Python: https://www.python.org
118-
.. _asyncio: http://docs.python.org/3.4/library/asyncio.html
118+
.. _asyncio: http://docs.python.org/3.5/library/asyncio.html
119119
.. _aiopg: https://github.com/aio-libs/aiopg
120120
.. _PyMySQL: https://github.com/PyMySQL/PyMySQL
121121
.. _Tornado-MySQL: https://github.com/PyMySQL/Tornado-MySQL

aiomysql/sa/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ async def scalar(self):
447447
else:
448448
return None
449449

450-
async def __aiter__(self):
450+
def __aiter__(self):
451451
return self
452452

453453
async def __anext__(self):

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Welcome to aiomysql's documentation!
77
====================================
88

99
.. _GitHub: https://github.com/aio-libs/aiomysql
10-
.. _asyncio: http://docs.python.org/3.4/library/asyncio.html
10+
.. _asyncio: http://docs.python.org/3.5/library/asyncio.html
1111
.. _aiopg: https://github.com/aio-libs/aiopg
1212
.. _Tornado-MySQL: https://github.com/PyMySQL/Tornado-MySQL
1313
.. _aio-libs: https://github.com/aio-libs
@@ -105,7 +105,7 @@ coverage reports.
105105
Dependencies
106106
------------
107107

108-
- Python 3.3 and :mod:`asyncio` or Python 3.4+
108+
- Python 3.5.3+
109109
- :term:`PyMySQL`
110110
- aiomysql.sa requires :term:`sqlalchemy`.
111111

0 commit comments

Comments
 (0)