1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Fixed new flake8 rule issues.

This commit is contained in:
Joe R 2022-08-03 20:56:14 -04:00
parent 42e6288e16
commit bfc65193f0
3 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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 = ''

View file

@ -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, ".")