Merge pull request #8194 from ethereum/json-ast-extract-fix

Remove binary mode from JSON AST extraction script
This commit is contained in:
chriseth 2020-01-28 18:08:32 +01:00 committed by GitHub
commit 8b3da371ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)