cpython: 6eb3312a9a16 (original) (raw)

Mercurial > cpython

changeset 104733:6eb3312a9a16 3.6

Issue #25002: Back out asyncore/asynchat deprecation. [#25002]

Guido van Rossum guido@python.org
date Tue, 25 Oct 2016 18:42:51 -0700
parents 8358c68579e9
children 2879185bc511 c647759eb650
files Lib/asynchat.py Lib/asyncore.py
diffstat 2 files changed, 0 insertions(+), 9 deletions(-)[+] [-] Lib/asynchat.py 5 Lib/asyncore.py 4

line wrap: on

line diff

--- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -46,13 +46,8 @@ method) up to the terminator, and then c you - by calling your self.found_terminator() method. """ import asyncore -import warnings - from collections import deque -warnings.warn(

class async_chat(asyncore.dispatcher): """This is an abstract class. You must derive from this class, and add

--- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -60,10 +60,6 @@ from errno import EALREADY, EINPROGRESS, _DISCONNECTED = frozenset({ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED, EPIPE, EBADF}) -warnings.warn(

- try: socket_map except NameError: