[pypy-commit] pypy py3.6: Legacy __aiter__ protocol now emits a DeprecationWarning.

amauryfa pypy.commits at gmail.com
Mon Mar 5 03:52:34 EST 2018


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.6
Changeset: r93954:256b3eca58cb
Date: 2018-03-04 10:05 +0100
http://bitbucket.org/pypy/pypy/changeset/256b3eca58cb/

Log:	Legacy __aiter__ protocol now emits a DeprecationWarning.

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1609,7 +1609,7 @@
                 "__aiter__ should return an asynchronous "
                 "iterator, not awaitable" %
                     space.type(w_obj).name),
-                space.w_PendingDeprecationWarning)
+                space.w_DeprecationWarning)
         self.pushvalue(w_awaitable)
 
     def GET_ANEXT(self, oparg, next_instr):


More information about the pypy-commit mailing list