diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-02-05 14:33:17 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-02-05 14:33:17 +0100 |
commit | d864a326d25815a240aa5ac34171e48687311f29 (patch) | |
tree | 8041cd128cc7a261687f696cdc33e4e6707e66d9 /libmproxy/protocol/primitives.py | |
parent | 6a53ae5fd37b516074f9bf46cffab015f6626b9e (diff) | |
download | mitmproxy-d864a326d25815a240aa5ac34171e48687311f29.tar.gz mitmproxy-d864a326d25815a240aa5ac34171e48687311f29.tar.bz2 mitmproxy-d864a326d25815a240aa5ac34171e48687311f29.zip |
fix all tests except those using set_url and get_url
Diffstat (limited to 'libmproxy/protocol/primitives.py')
-rw-r--r-- | libmproxy/protocol/primitives.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmproxy/protocol/primitives.py b/libmproxy/protocol/primitives.py index f77e097b..f3fdd245 100644 --- a/libmproxy/protocol/primitives.py +++ b/libmproxy/protocol/primitives.py @@ -41,6 +41,7 @@ class Error(stateobject.SimpleStateObject): @type msg: str @type timestamp: float """ + self.flow = None # will usually be set by the flow backref mixin self.msg = msg self.timestamp = timestamp or utils.timestamp() @@ -88,6 +89,9 @@ class Flow(stateobject.SimpleStateObject, _BackreferenceMixin): f._load_state(state) return f + def __eq__(self, other): + return self is other + def copy(self): f = copy.copy(self) |