Merge pull request #5803 from jdufresne/encoding-utf8

Avoid respecifying default encoding for .encode()/.decode() calls
This commit is contained in:
Takeshi KOMIYA
2018-12-16 20:01:43 +09:00
committed by GitHub
18 changed files with 37 additions and 37 deletions

View File

@@ -134,7 +134,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('utf-8'))
f.write(js_test_src.encode())
print("starting test...")
result = subprocess.call(['node', './regression_test.js'])