Skip to content
Snippets Groups Projects
Commit 5f94b782 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

use bytearray rather than buffer for py3 compat

parent af0076f4
No related branches found
No related tags found
No related merge requests found
...@@ -133,8 +133,8 @@ class Packet(object): ...@@ -133,8 +133,8 @@ class Packet(object):
self.secondary_header.timecode.astimestamp() or None) self.secondary_header.timecode.astimestamp() or None)
def bytes(self): def bytes(self):
return buffer(self.primary_header) + \ return bytearray(self.primary_header) + \
buffer(self.secondary_header) + self.data bytearray(self.secondary_header) + self.data
def is_group(self): def is_group(self):
return self.is_first() or self.is_continuing() or self.is_last() return self.is_first() or self.is_continuing() or self.is_last()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment