From 26609db2fd7b6ebe7c8430852ce53dd2bad447f9 Mon Sep 17 00:00:00 2001 From: David Pokora Date: Mon, 29 Apr 2019 18:08:22 -0400 Subject: [PATCH] Fixes an regression issue with line/column number calculations (resolves #218) --- slither/slither.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/slither.py b/slither/slither.py index 78a2bce7d..39435bf8c 100644 --- a/slither/slither.py +++ b/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 = []