mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-15 05:20:20 -06:00
Clean up calls to .encode() / .decode()
This commit is contained in:
@@ -9,7 +9,7 @@ from identify.identify import parse_shebang_from_file
|
||||
|
||||
class ExecutableNotFoundError(OSError):
|
||||
def to_output(self) -> Tuple[int, bytes, None]:
|
||||
return (1, self.args[0].encode('UTF-8'), None)
|
||||
return (1, self.args[0].encode(), None)
|
||||
|
||||
|
||||
def parse_filename(filename: str) -> Tuple[str, ...]:
|
||||
|
||||
Reference in New Issue
Block a user