aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/netstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/netstring.py')
-rw-r--r--libmproxy/netstring.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/libmproxy/netstring.py b/libmproxy/netstring.py
index a7b7a537..669e19e3 100644
--- a/libmproxy/netstring.py
+++ b/libmproxy/netstring.py
@@ -23,8 +23,6 @@ class FileEncoder(object):
data -- A string to be encoded and written
"""
- if not isinstance(data, str):
- raise ValueError("data should be of type 'str'")
write = self.file_out.write
write(header(data))
write(data)
@@ -81,8 +79,6 @@ class Decoder(object):
data -- A string containing complete or partial netstring data
"""
- if not isinstance(data, str):
- raise ValueError("data should be of type 'str'")
self.data_pos = 0
self.string_start = 0
while self.data_pos < len(data):