python fixes, tests

This commit is contained in:
Ethan Buchman
2015-12-14 18:00:18 -05:00
parent bb4a58aa0a
commit af2a1a6fc1
8 changed files with 103 additions and 51 deletions

View File

@@ -6,6 +6,7 @@ class BytesReader():
def read(self, n):
if len(self.buf) < n:
print "reader err: buf less than n"
# TODO: exception
return
r = self.buf[:n]