mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
86e0dd9a0a
commit
de21c2bf10
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user