diff --git a/netlib/http/headers.py b/netlib/http/headers.py index f64e6200d..6eb9db92d 100644 --- a/netlib/http/headers.py +++ b/netlib/http/headers.py @@ -194,7 +194,7 @@ class Headers(MutableMapping): return Headers(copy.copy(self.fields)) # Implement the StateObject protocol from mitmproxy - def get_state(self, short=False): + def get_state(self): return tuple(tuple(field) for field in self.fields) def load_state(self, state): diff --git a/netlib/http/request.py b/netlib/http/request.py index 5ebf21a55..6dabb1896 100644 --- a/netlib/http/request.py +++ b/netlib/http/request.py @@ -292,7 +292,7 @@ class Request(Message): return None @multipart_form.setter - def multipart_form(self): + def multipart_form(self, value): raise NotImplementedError() # Legacy diff --git a/netlib/odict.py b/netlib/odict.py index 1124b23a0..90317e5e8 100644 --- a/netlib/odict.py +++ b/netlib/odict.py @@ -169,7 +169,7 @@ class ODict(object): return count # Implement the StateObject protocol from mitmproxy - def get_state(self, short=False): + def get_state(self): return [tuple(i) for i in self.lst] def load_state(self, state):