mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8194 from ethereum/json-ast-extract-fix
Remove binary mode from JSON AST extraction script
This commit is contained in:
commit
8b3da371ed
@ -48,7 +48,7 @@ def writeSourceToFile(lines):
|
||||
if __name__ == '__main__':
|
||||
filePath = sys.argv[1]
|
||||
# decide if file has multiple sources
|
||||
lines = open(filePath, mode='rb', encoding='utf8').read().splitlines()
|
||||
lines = open(filePath, mode='r', encoding='utf8').read().splitlines()
|
||||
if lines[0][:12] == "==== Source:":
|
||||
hasMultipleSources = True
|
||||
writeSourceToFile(lines)
|
||||
|
Loading…
Reference in New Issue
Block a user