summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-12-17 20:47:28 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-12-17 20:47:28 (GMT)
commite708fbd2867ddcdc690930869cbf73e964f452c1 (patch)
tree99c4d79837b2f5dabf71fe00cafc54f19bef69c2 /Lib/test
parent64958a15d7c03efdc3d2eddf247666e18d1fd910 (diff)
downloadcpython-e708fbd2867ddcdc690930869cbf73e964f452c1.zip
cpython-e708fbd2867ddcdc690930869cbf73e964f452c1.tar.gz
cpython-e708fbd2867ddcdc690930869cbf73e964f452c1.tar.bz2
Remove methods that are no longer called by urllib2.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib2.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index f80148c..6438b4e 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -433,22 +433,8 @@ class HandlerTests(unittest.TestCase):
if self.raise_on_endheaders:
import socket
raise socket.error()
- def putrequest(self, method, selector):
- self.method, self.selector = method, selector
- def putheader(self, key, value):
- self.req_headers.append((key, value))
- def endheaders(self):
- if self.raise_on_endheaders:
- import socket
- raise socket.error()
- def send(self, data):
- self.data = data
- def getreply(self):
- return 200, "OK", {}
def getresponse(self):
return MockHTTPResponse(MockFile(), {}, 200, "OK")
- def getfile(self):
- return MockFile()
h = urllib2.AbstractHTTPHandler()
o = h.parent = MockOpener()