minor fixes

This commit is contained in:
Maximilian Hils 2016-02-08 02:10:48 +01:00
parent 8f8796f9d9
commit 4873547de3
3 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -292,7 +292,7 @@ class Request(Message):
return None
@multipart_form.setter
def multipart_form(self):
def multipart_form(self, value):
raise NotImplementedError()
# Legacy

View File

@ -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):