mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
Clean up calls to .encode() / .decode()
This commit is contained in:
@@ -16,7 +16,7 @@ class FatalError(RuntimeError):
|
||||
|
||||
|
||||
def _to_bytes(exc: BaseException) -> bytes:
|
||||
return str(exc).encode('UTF-8')
|
||||
return str(exc).encode()
|
||||
|
||||
|
||||
def _log_and_exit(msg: str, exc: BaseException, formatted: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user