Removes the binary option from JSON AST extraction script.

This commit is contained in:
Erik Kundt 2020-01-27 11:39:54 +01:00 committed by Mathias Baumann
parent 0dd398e2ac
commit 4a87f6e403

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)