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")
|
||||
|
||||
|
||||
@@ -40,15 +40,15 @@ class WavInfoReader:
|
||||
"""
|
||||
Create a new reader object.
|
||||
|
||||
:param path:
|
||||
A pathlike object or IO to the wav file you wish to probe or a
|
||||
:param path:
|
||||
A pathlike object or IO to the wav file you wish to probe or a
|
||||
file handle to an open file.
|
||||
|
||||
:param info_encoding:
|
||||
:param info_encoding:
|
||||
The text encoding of the ``INFO``, ``LABL`` and other RIFF-defined
|
||||
metadata fields.
|
||||
metadata fields.
|
||||
|
||||
:param bext_encoding:
|
||||
:param bext_encoding:
|
||||
The text encoding to use when decoding the string
|
||||
fields of the Broadcast-WAV extension. Per EBU 3285 this is ASCII
|
||||
but this parameter is available to you if you encounter a weirdo.
|
||||
@@ -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