summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index ce72b65..ec8d610 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -155,13 +155,9 @@ class _socketobject:
class _closedsocket:
- def _bummer(self):
+ def __getattr__(self, name):
raise error(9, 'Bad file descriptor')
- _s = "def %s(self, *args): self._bummer()\n\n"
- for _m in _socketmethods:
- exec _s % _m
-
class _fileobject: