Clean up calls to .encode() / .decode()

This commit is contained in:
Anthony Sottile
2020-01-12 10:46:33 -08:00
parent b2faf339ce
commit aefbe71765
11 changed files with 17 additions and 18 deletions

View File

@@ -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, ...]: