Correct str/bytes mixup in utils/jssplitter_generator.py

The file is opened in text mode, so it .wraite() takes str not bytes.
This commit is contained in:
Jon Dufresne 2019-08-17 09:42:16 -07:00
parent 86e0dd9a0a
commit de21c2bf10

View File

@ -133,7 +133,7 @@ with open('../sphinx/search/jssplitter.py', 'w') as f:
f.write(python_src)
with open('./regression_test.js', 'w') as f:
f.write(js_test_src.encode())
f.write(js_test_src)
print("starting test...")
result = subprocess.call(['node', './regression_test.js'])