Remove debug prints

This commit is contained in:
Emily 2019-03-13 09:08:44 +01:00
parent 677ece2cb9
commit 2b418c27c1
3 changed files with 0 additions and 9 deletions

View File

@ -81,7 +81,6 @@ class Serializable:
def pack(self, byte_order = BYTEORDER_LITTLE):
struct_fmt = byte_order + self.get_struct_fmt()
print(struct_fmt, self.get_value())
return struct.pack(struct_fmt, *self.get_value())
class Serializer:
@ -97,13 +96,6 @@ class Serializer:
def flush(self):
return b"".join(s.pack() for s in self.stack)
"""
struct_fmt = self.byte_order + b"".join( s.get_struct_fmt() for s in self.stack )
print(struct_fmt)
print([ s.get_value() for s in self.stack ])
return struct.pack(struct_fmt, *[ s.get_value() for s in self.stack ])
"""
def __bytes__(self):
return self.flush()

View File

@ -194,4 +194,3 @@ class Replay:
with open(filename, "wb") as f:
f.write( serializer.flush() )
print(serializer.flush())

BIN
test.osr Normal file

Binary file not shown.