mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ignore UTF errors when handling test files in python
This commit is contained in:
parent
999f158917
commit
53dd818e96
@ -43,7 +43,7 @@ def extract_docs_cases(path):
|
||||
tests = []
|
||||
|
||||
# Collect all snippets of indented blocks
|
||||
for l in open(path, mode='r', encoding='utf8').read().splitlines():
|
||||
for l in open(path, mode='r', errors='ignore', encoding='utf8').read().splitlines():
|
||||
if l != '':
|
||||
if not inside and l.startswith(' '):
|
||||
# start new test
|
||||
|
Loading…
Reference in New Issue
Block a user