From ede361afdfc257552cf119b7085c2f2eedc85370 Mon Sep 17 00:00:00 2001 From: Baris Can Colak Date: Tue, 28 Nov 2023 10:34:42 +0100 Subject: [PATCH] linted (again) --- testmodule/jobfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testmodule/jobfile.py b/testmodule/jobfile.py index ef0bbca..72d364f 100644 --- a/testmodule/jobfile.py +++ b/testmodule/jobfile.py @@ -41,7 +41,7 @@ def __repr__(self): + str(len(self.headlines)) + "\n" + "Number of program lines:\n\t" - + str(number_program_lines()) #except NOP, END and " " + + str(number_program_lines()) # except NOP, END and " " + "\n" + "Number of LVARS:\n\t" + str(len(self.LVARS)) @@ -49,7 +49,9 @@ def __repr__(self): return rep def number_program_lines(self): - return len([line for line in self.program_lines if not line in ["NOP", "END", ""]]) + return len( + [line for line in self.program_lines if not line in ["NOP", "END", ""]] + ) def read_LVARS(self): """Create a dictionary with the local variables."""