aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-02-04 16:05:11 +0100
committerGitHub <noreply@github.com>2017-02-04 16:05:11 +0100
commitd133b8baeeefa04fa6bdf43c39be822def013a6b (patch)
treeecdb6a3fd3356bc0f07ece4dd0cf9e3fa07323ba /mitmproxy
parent155670766e03fb63b78f5fe40a995d194d12308d (diff)
parent966ffaa3d602b10e1716824087cd1a80e85bfc2c (diff)
downloadmitmproxy-d133b8baeeefa04fa6bdf43c39be822def013a6b.tar.gz
mitmproxy-d133b8baeeefa04fa6bdf43c39be822def013a6b.tar.bz2
mitmproxy-d133b8baeeefa04fa6bdf43c39be822def013a6b.zip
Merge pull request #1989 from Kriechi/coverage++
coverage++
Diffstat (limited to 'mitmproxy')
-rw-r--r--mitmproxy/proxy/protocol/base.py10
-rw-r--r--mitmproxy/proxy/root_context.py7
2 files changed, 0 insertions, 17 deletions
diff --git a/mitmproxy/proxy/protocol/base.py b/mitmproxy/proxy/protocol/base.py
index c535a1a3..93619171 100644
--- a/mitmproxy/proxy/protocol/base.py
+++ b/mitmproxy/proxy/protocol/base.py
@@ -74,16 +74,6 @@ class Layer(_LayerCodeCompletion):
"""
return getattr(self.ctx, name)
- @property
- def layers(self):
- """
- List of all layers, including the current layer (``[self, self.ctx, self.ctx.ctx, ...]``)
- """
- return [self] + self.ctx.layers
-
- def __repr__(self):
- return type(self).__name__
-
class ServerConnectionMixin:
diff --git a/mitmproxy/proxy/root_context.py b/mitmproxy/proxy/root_context.py
index f38f2a8c..180fc9ca 100644
--- a/mitmproxy/proxy/root_context.py
+++ b/mitmproxy/proxy/root_context.py
@@ -110,10 +110,3 @@ class RootContext:
full_msg.append(" -> " + i)
full_msg = "\n".join(full_msg)
self.channel.tell("log", log.LogEntry(full_msg, level))
-
- @property
- def layers(self):
- return []
-
- def __repr__(self):
- return "RootContext"