From cb2f11a68e444d45e10e1b8045802bb94cfd70d6 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 23 Jun 2012 14:06:54 +1200 Subject: Bump version, adapt for API canges in netlib. --- libpathod/pathod.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libpathod/pathod.py') diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 4f5fba22..aed95675 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -1,5 +1,5 @@ import urllib, threading -from netlib import tcp, protocol, odict, wsgi +from netlib import tcp, http, odict, wsgi import version, app, rparse @@ -17,9 +17,9 @@ class PathodHandler(tcp.BaseHandler): if line == "": return None - method, path, httpversion = protocol.parse_init_http(line) - headers = odict.ODictCaseless(protocol.read_headers(self.rfile)) - content = protocol.read_http_body_request( + method, path, httpversion = http.parse_init_http(line) + headers = odict.ODictCaseless(http.read_headers(self.rfile)) + content = http.read_http_body_request( self.rfile, self.wfile, headers, httpversion, None ) -- cgit v1.2.3