Author: Amaury Forgeot d'Arc <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit