From 25485d9601a7a634bde16b9d97bf5bb9a9c0da39 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 5 Jan 2020 17:14:09 -0800 Subject: [PATCH] Update riff_parser.py Removed code that isn't being used. --- wavinfo/riff_parser.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/wavinfo/riff_parser.py b/wavinfo/riff_parser.py index 6366ae5..2f44b4c 100644 --- a/wavinfo/riff_parser.py +++ b/wavinfo/riff_parser.py @@ -11,17 +11,18 @@ class WavInfoEOFError(EOFError): class ListChunkDescriptor(namedtuple('ListChunkDescriptor', 'signature children')): - def find(self, chunk_path): - if len(chunk_path) > 1: - for chunk in self.children: - if type(chunk) is ListChunkDescriptor and \ - chunk.signature is chunk_path[0]: - return chunk.find(chunk_path[1:]) - else: - for chunk in self.children: - if type(chunk) is ChunkDescriptor and \ - chunk.ident is chunk_path[0]: - return chunk + pass + # def find(self, chunk_path): + # if len(chunk_path) > 1: + # for chunk in self.children: + # if type(chunk) is ListChunkDescriptor and \ + # chunk.signature is chunk_path[0]: + # return chunk.find(chunk_path[1:]) + # else: + # for chunk in self.children: + # if type(chunk) is ChunkDescriptor and \ + # chunk.ident is chunk_path[0]: + # return chunk class ChunkDescriptor(namedtuple('ChunkDescriptor', 'ident start length rf64_context')):