diff --git a/pysollib/hint.py b/pysollib/hint.py index c57cf006..53a3cd83 100644 --- a/pysollib/hint.py +++ b/pysollib/hint.py @@ -1073,7 +1073,7 @@ class FreeCellSolver_Hint(Base_Solver_Hint): } if DEBUG: start_time = time.time() - if not(use_fc_solve_lib) and progress: + if not (use_fc_solve_lib) and progress: iter_ = 0 depth = 0 states = 0 diff --git a/pysollib/tk/tabpage.py b/pysollib/tk/tabpage.py index da81a472..60c4bf9e 100644 --- a/pysollib/tk/tabpage.py +++ b/pysollib/tk/tabpage.py @@ -117,7 +117,7 @@ class TabPageSet(tkinter.Frame): self.pages[pageName]['page'].grid_forget() self.pages[pageName]['tab'].destroy() self.pages[pageName]['page'].destroy() - del(self.pages[pageName]) + del (self.pages[pageName]) # handle removing last remaining, or default, or active page if not self.pages: # removed last remaining page self.defaultPage = '' diff --git a/scripts/gen_individual_importing_tests.py b/scripts/gen_individual_importing_tests.py index e7f99ee8..05a07038 100644 --- a/scripts/gen_individual_importing_tests.py +++ b/scripts/gen_individual_importing_tests.py @@ -33,7 +33,9 @@ for module_name in module_names: if ((not is_gtk) or (ver == 2 and (not IS_MAC) and (not SKIP_GTK))): def fmt(s): return s % {'module_name': module_name, 'ver': ver} - open(os.path.join(".", "tests", "individually-importing", fmt("import_v%(ver)d_%(module_name)s.py")), 'w').write(fmt('''#!/usr/bin/env python%(ver)d + open(os.path.join(".", "tests", "individually-importing", + fmt("import_v%(ver)d_%(module_name)s.py")), + 'w').write(fmt('''#!/usr/bin/env python%(ver)d import sys print('1..1') sys.path.insert(0, ".")