Fixes an regression issue with line/column number calculations (resolves #218)

pull/219/head
David Pokora 6 years ago
parent 04c147f7e5
commit 26609db2fd
No known key found for this signature in database
GPG Key ID: 3CED48D1BB21BDD7
  1. 2
      slither/slither.py

@ -65,7 +65,7 @@ class Slither(SlitherSolc):
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 = []

Loading…
Cancel
Save