mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 08:50:51 +00:00
pylint
This commit is contained in:
@@ -29,7 +29,7 @@ def execute_batch_list(batch_list_path: str, dry_run: bool, interactive: bool):
|
||||
parser.eval(line, line_no, interactive)
|
||||
|
||||
|
||||
def create_batch_list(command_file: str, recursive= True):
|
||||
def create_batch_list(command_file: str, recursive=True):
|
||||
"""
|
||||
Read all FLAC files in the cwd and create a batchfile that re-creates all
|
||||
of their metadata.
|
||||
|
||||
@@ -163,7 +163,7 @@ they appear in the batchfile.
|
||||
def _handle_command(self, line, lineno):
|
||||
args = shlex.split(line)
|
||||
actions = [m_name for m_name in dir(self)
|
||||
if not (m_name.startswith('_') or m_name == 'eval') ]
|
||||
if not (m_name.startswith('_') or m_name == 'eval')]
|
||||
|
||||
if args[0] in actions:
|
||||
try:
|
||||
@@ -191,7 +191,6 @@ they appear in the batchfile.
|
||||
self.env.revert_onces()
|
||||
self.env.clear_file_keys()
|
||||
|
||||
|
||||
while True:
|
||||
|
||||
self.env.set_file_keys(line)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
mfbatch util - utility functions
|
||||
"""
|
||||
|
||||
|
||||
def readline_with_escaped_newlines(f):
|
||||
"""
|
||||
A readline line generator, except lines ending with a backslash will be
|
||||
@@ -22,6 +23,5 @@ def readline_with_escaped_newlines(f):
|
||||
line = line[:-1]
|
||||
continue
|
||||
|
||||
else:
|
||||
yield line, line_no
|
||||
line = ''
|
||||
|
||||
Reference in New Issue
Block a user