Skip to content

File is never closed in load function #1

@dmalan

Description

@dmalan

In load, file is opened but never closed:

speller/dictionary.py

Lines 11 to 15 in 9ce3937

def load(dictionary):
file = open(dictionary, "r")
for line in file:
words.append(line.rstrip())
return True

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions