From 9f26d68f47bc7729b0727ed67253503e047ea0f9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 16 Sep 2015 18:44:34 +0200 Subject: adjust to netlib changes --- libpathod/language/http2.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libpathod/language/http2.py') diff --git a/libpathod/language/http2.py b/libpathod/language/http2.py index 2c3f1786..829a05db 100644 --- a/libpathod/language/http2.py +++ b/libpathod/language/http2.py @@ -1,6 +1,7 @@ import pyparsing as pp -from netlib.http import user_agents, semantics, Headers +from netlib import http +from netlib.http import user_agents, Headers from . import base, message """ @@ -184,7 +185,7 @@ class Response(_HTTP2Message): if body: body = body.string() - resp = semantics.Response( + resp = http.Response( (2, 0), self.code.string(), '', @@ -267,7 +268,7 @@ class Request(_HTTP2Message): if body: body = body.string() - req = semantics.Request( + req = http.Request( '', self.method.string(), '', -- cgit v1.2.3