mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 08:50:41 +00:00
flake8 cleanup IP
This commit is contained in:
@@ -233,7 +233,8 @@ class WavIXMLFormat:
|
||||
def family_uid(self) -> Optional[str]:
|
||||
"""
|
||||
The globally-unique ID for this file family. This may be in the format
|
||||
of a GUID, or an EBU Rec 9 source identifier, or some other dumb number.
|
||||
of a GUID, or an EBU Rec 9 source identifier, or some other dumb
|
||||
number.
|
||||
"""
|
||||
return self._get_text_value("FILE_SET/FAMILY_UID")
|
||||
|
||||
|
||||
@@ -116,7 +116,8 @@ class WavInfoReader:
|
||||
def _find_chunk_data(self, ident, from_stream,
|
||||
default_none=False) -> Optional[bytes]:
|
||||
top_chunks = (chunk for chunk in self.main_list
|
||||
if type(chunk) is ChunkDescriptor and chunk.ident == ident)
|
||||
if type(chunk) is ChunkDescriptor and
|
||||
chunk.ident == ident)
|
||||
|
||||
chunk_descriptor = next(top_chunks, None) \
|
||||
if default_none else next(top_chunks)
|
||||
|
||||
@@ -9,10 +9,12 @@ import sys
|
||||
def main():
|
||||
parser = OptionParser()
|
||||
|
||||
parser.usage = "wavfind [--scene=SCENE] [--take=TAKE] [--desc=DESC] <PATH> +"
|
||||
parser.usage = ("wavfind [--scene=SCENE] [--take=TAKE] [--desc=DESC] "
|
||||
"<PATH> +")
|
||||
|
||||
primaries = OptionGroup(parser, title="Search Predicates",
|
||||
description="Argument values can be globs, and are logically-AND'ed.")
|
||||
description="Argument values can be globs, "
|
||||
"and are logically-AND'ed.")
|
||||
|
||||
primaries.add_option("--scene",
|
||||
help='Search for this scene',
|
||||
|
||||
Reference in New Issue
Block a user