From fbbc43a5b24f24657bb7a9d6eff50b3db77e5e7f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 12 Mar 2011 14:39:41 +1300 Subject: netstring.py 100% unit test coverage. --- libmproxy/netstring.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libmproxy/netstring.py') 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): -- cgit v1.2.3