Skip to content

Commit

Permalink
pep 8
Browse files Browse the repository at this point in the history
  • Loading branch information
futzu authored Aug 20, 2023
1 parent 7e99da7 commit cb2dc87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions threefive/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(self, bites=None):
self.parse_id()
self.provider_avail_id = None
self.components = None
self.private_data = None

def parse_tag_and_len(self):
"""
Expand All @@ -57,6 +58,7 @@ def parse_id(self):
# raise Exception('Identifier Is Not "CUEI"')
self.bites = self.bites[4:]


def encode(self, nbin=None):
"""
SpliceDescriptor.encode
Expand Down Expand Up @@ -403,7 +405,7 @@ def _encode_segments(self, nbin):
2: SegmentationDescriptor,
3: TimeDescriptor,
4: AudioDescriptor,

}


Expand All @@ -413,7 +415,7 @@ def splice_descriptor(bites):
"""
tag = bites[0]
if tag not in descriptor_map:
return SpliceDescriptor(bites)
return SpliceDescriptor(bites)
spliced = descriptor_map[tag](bites)
spliced.decode()
return spliced

0 comments on commit cb2dc87

Please sign in to comment.