summaryrefslogtreecommitdiffstats
path: root/Lib/http/client.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2009-03-27 17:14:18 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2009-03-27 17:14:18 (GMT)
commite6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3 (patch)
treee7291b29d8f1395eea497def307bcea58529e9a4 /Lib/http/client.py
parentef9f48e578a14c91fb101a4fbe73e5c3d400dcbf (diff)
downloadcpython-e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3.zip
cpython-e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3.tar.gz
cpython-e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3.tar.bz2
Replace duplicate code in http.server with call to http.client.parse_headers().
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r--Lib/http/client.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 0477ddd..1fe010c 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -237,8 +237,6 @@ def parse_headers(fp):
to parse.
"""
- # XXX: Copied from http.server.BaseHTTPRequestHandler.parse_request,
- # maybe we can just call this function from there.
headers = []
while True:
line = fp.readline()