Skip to content

Commit b454071

Browse files
Removing unused: SIM115
1 parent bf23715 commit b454071

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/arrays/sudoku_solver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ def unitsolved(unit):
172172

173173
def from_file(filename, sep="\n"):
174174
"Parse a file into a list of strings, separated by sep."
175-
return open(filename).read().strip().split(sep) # noqa: SIM115
175+
with open(filename) as file:
176+
return file.read().strip().split(sep)
176177

177178

178179
def random_puzzle(assignments=17):

0 commit comments

Comments
 (0)