Skip to content

Commit d63a6eb

Browse files
authored
Merge pull request #24 from atomsos/master
Update units.py, decode file ignore not utf8 errros
2 parents 2e2a0f4 + 0aafd39 commit d63a6eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fortdepend/units.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def __init__(
4646
self.depends_on = None
4747

4848
if readfile:
49-
with smart_open(self.filename, "r") as f:
50-
contents = f.read()
49+
with smart_open(self.filename, "r", encoding="utf-8") as f:
50+
contents = f.read().lower()
5151

5252
preprocessor = FortranPreprocessor()
5353

0 commit comments

Comments
 (0)