mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 08:50:51 +00:00
pylint
This commit is contained in:
@@ -162,8 +162,8 @@ they appear in the batchfile.
|
|||||||
|
|
||||||
def _handle_command(self, line, lineno):
|
def _handle_command(self, line, lineno):
|
||||||
args = shlex.split(line)
|
args = shlex.split(line)
|
||||||
actions = [member for member in dir(self)
|
actions = [m_name for m_name in dir(self)
|
||||||
if not (member.startswith('_') or member == 'eval') ]
|
if not (m_name.startswith('_') or m_name == 'eval') ]
|
||||||
|
|
||||||
if args[0] in actions:
|
if args[0] in actions:
|
||||||
try:
|
try:
|
||||||
@@ -202,13 +202,11 @@ they appear in the batchfile.
|
|||||||
else:
|
else:
|
||||||
sys.stdout.write(f"\nFile: \033[1m{line}\033[0m\n")
|
sys.stdout.write(f"\nFile: \033[1m{line}\033[0m\n")
|
||||||
|
|
||||||
for key in self.env.metadatums.keys():
|
for key, value in self.env.metadatums.items():
|
||||||
|
|
||||||
if key.startswith('_'):
|
if key.startswith('_'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
value = self.env.metadatums[key]
|
|
||||||
|
|
||||||
LINE_LEN = int(shutil.get_terminal_size()[0]) - 32
|
LINE_LEN = int(shutil.get_terminal_size()[0]) - 32
|
||||||
value_lines = [value[i:i+LINE_LEN] for i in
|
value_lines = [value[i:i+LINE_LEN] for i in
|
||||||
range(0, len(value), LINE_LEN)]
|
range(0, len(value), LINE_LEN)]
|
||||||
|
|||||||
Reference in New Issue
Block a user