mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removes the binary option from JSON AST extraction script.
This commit is contained in:
parent
0dd398e2ac
commit
4a87f6e403
@ -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