sublime_text
sublime_text copied to clipboard
Syntax test runner throws exception
Description of the bug
By reading syntax files in binary mode the newline="" argument is no longer valid (or required).
Traceback (most recent call last):
File "<ST>\Lib\python38\sublime_plugin.py", line 1664, in run_
return self.run(**args)
File "<ST>\Data\Packages\Default\run_syntax_tests.py", line 39, in run
relative_path = package_relative_path(self.window.active_view())
File "<ST>\Data\Packages\Default\run_syntax_tests.py", line 304, in package_relative_path
with open(path, "rb", newline="") as f:
ValueError: binary mode doesn't take a newline argument
Steps to reproduce
Uncertain, how this code branch was triggered.
Just saw the error message in console at some point.
Expected behavior
No exception being raised.
Actual behavior
Exception is raised
Sublime Text build number
4173
Operating system & version
Windows 11
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
No response