Skip to content

Commit

Permalink
Fixes an regression issue with line/column number calculations (resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenomega committed Apr 29, 2019
1 parent 04c147f commit 26609db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/slither.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, contract, **kwargs):
for path, ast in cryticCompile.asts.items():

self._parse_contracts_from_loaded_json(ast, path)
with open(path) as f:
with open(path, encoding='utf8', newline='') as f:
self.source_code[path] = f.read()

self._detectors = []
Expand Down

0 comments on commit 26609db

Please sign in to comment.