Remove debug prints
This commit is contained in:
parent
677ece2cb9
commit
2b418c27c1
|
@ -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()
|
||||
|
|
|
@ -194,4 +194,3 @@ class Replay:
|
|||
|
||||
with open(filename, "wb") as f:
|
||||
f.write( serializer.flush() )
|
||||
print(serializer.flush())
|
||||
|
|
Loading…
Reference in New Issue
Block a user