mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-02 09:50:41 +00:00
Update riff_parser.py
Removed code that isn't being used.
This commit is contained in:
@@ -11,17 +11,18 @@ class WavInfoEOFError(EOFError):
|
|||||||
|
|
||||||
|
|
||||||
class ListChunkDescriptor(namedtuple('ListChunkDescriptor', 'signature children')):
|
class ListChunkDescriptor(namedtuple('ListChunkDescriptor', 'signature children')):
|
||||||
def find(self, chunk_path):
|
pass
|
||||||
if len(chunk_path) > 1:
|
# def find(self, chunk_path):
|
||||||
for chunk in self.children:
|
# if len(chunk_path) > 1:
|
||||||
if type(chunk) is ListChunkDescriptor and \
|
# for chunk in self.children:
|
||||||
chunk.signature is chunk_path[0]:
|
# if type(chunk) is ListChunkDescriptor and \
|
||||||
return chunk.find(chunk_path[1:])
|
# chunk.signature is chunk_path[0]:
|
||||||
else:
|
# return chunk.find(chunk_path[1:])
|
||||||
for chunk in self.children:
|
# else:
|
||||||
if type(chunk) is ChunkDescriptor and \
|
# for chunk in self.children:
|
||||||
chunk.ident is chunk_path[0]:
|
# if type(chunk) is ChunkDescriptor and \
|
||||||
return chunk
|
# chunk.ident is chunk_path[0]:
|
||||||
|
# return chunk
|
||||||
|
|
||||||
|
|
||||||
class ChunkDescriptor(namedtuple('ChunkDescriptor', 'ident start length rf64_context')):
|
class ChunkDescriptor(namedtuple('ChunkDescriptor', 'ident start length rf64_context')):
|
||||||
|
|||||||
Reference in New Issue
Block a user