summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2014-04-29 02:03:40 +0200
committerGiampaolo Rodola' <g.rodola@gmail.com>2014-04-29 02:03:40 +0200
commit8af740c46a89f46d6a2f59869847724a5eaf3625 (patch)
tree4fbe7809cbdc62ab301047009c6bf224223c2631 /Lib/asyncore.py
parent63aeb71909f3058ee69f6e39478f541a045c2fbd (diff)
downloadcpython-git-8af740c46a89f46d6a2f59869847724a5eaf3625.tar.gz
fix isuse #13248: remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 75481ddde0..37efa9bac4 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -404,20 +404,6 @@ class dispatcher:
if why.args[0] not in (ENOTCONN, EBADF):
raise
- # cheap inheritance, used to pass all other attribute
- # references to the underlying socket object.
- def __getattr__(self, attr):
- try:
- retattr = getattr(self.socket, attr)
- except AttributeError:
- raise AttributeError("%s instance has no attribute '%s'"
- %(self.__class__.__name__, attr))
- else:
- msg = "%(me)s.%(attr)s is deprecated; use %(me)s.socket.%(attr)s " \
- "instead" % {'me' : self.__class__.__name__, 'attr' : attr}
- warnings.warn(msg, DeprecationWarning, stacklevel=2)
- return retattr
-
# log and log_info may be overridden to provide more sophisticated
# logging and warning methods. In general, log is for 'hit' logging
# and 'log_info' is for informational, warning and error logging.