mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Misc fixes across multiple algorithms (#6912)
Source: Snyk code quality Add scikit-fuzzy to requirements Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
@ -125,8 +125,9 @@ def solution(roman_numerals_filename: str = "/p089_roman.txt") -> int:
|
||||
|
||||
savings = 0
|
||||
|
||||
file1 = open(os.path.dirname(__file__) + roman_numerals_filename)
|
||||
lines = file1.readlines()
|
||||
with open(os.path.dirname(__file__) + roman_numerals_filename) as file1:
|
||||
lines = file1.readlines()
|
||||
|
||||
for line in lines:
|
||||
original = line.strip()
|
||||
num = parse_roman_numerals(original)
|
||||
|
Reference in New Issue
Block a user