]> granicus.if.org Git - python/commit
Issue 24237: Raise PendingDeprecationWarning per PEP 479
authorYury Selivanov <yselivanov@sprymix.com>
Fri, 22 May 2015 15:16:47 +0000 (11:16 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Fri, 22 May 2015 15:16:47 +0000 (11:16 -0400)
commit683333955a05a31da5f0b2ca1b3bffb9962fb4b2
tree236016d773133c19e57c14fc69144e46a586549d
parente79ec70801e410de9c3110ffe78f98e08114ae16
Issue 24237: Raise PendingDeprecationWarning per PEP 479

Raise PendingDeprecationWarning when generator raises StopIteration
and no __future__ import is used.  Fix offenders in the stdlib
and tests.

See also issue 22906.
Thanks to Nick Coghlan and Berker Peksag for reviews.
Lib/difflib.py
Lib/test/test_contextlib.py
Lib/test/test_generators.py
Lib/test/test_with.py
Objects/genobject.c