aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/contentviews.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/contentviews.py')
-rw-r--r--libmproxy/contentviews.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmproxy/contentviews.py b/libmproxy/contentviews.py
index eaab8169..526f5ff4 100644
--- a/libmproxy/contentviews.py
+++ b/libmproxy/contentviews.py
@@ -275,6 +275,7 @@ class ViewMultipart(View):
if pyamf:
class DummyObject(dict):
+
def __init__(self, alias):
dict.__init__(self)
@@ -282,7 +283,6 @@ if pyamf:
data = input.readObject()
self["data"] = data
-
def pyamf_class_loader(s):
for i in pyamf.CLASS_LOADERS:
if i != pyamf_class_loader:
@@ -291,10 +291,8 @@ if pyamf:
return v
return DummyObject
-
pyamf.register_class_loader(pyamf_class_loader)
-
class ViewAMF(View):
name = "AMF"
prompt = ("amf", "f")
@@ -417,6 +415,7 @@ class ViewImage(View):
class ViewProtobuf(View):
+
"""Human friendly view of protocol buffers
The view uses the protoc compiler to decode the binary
"""