mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
fix trailing whitespace in CalledProcessError output
This commit is contained in:
parent
192be6079b
commit
4ded56efac
3 changed files with 3 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ class CalledProcessError(RuntimeError):
|
|||
def __bytes__(self) -> bytes:
|
||||
def _indent_or_none(part: bytes | None) -> bytes:
|
||||
if part:
|
||||
return b'\n ' + part.replace(b'\n', b'\n ')
|
||||
return b'\n ' + part.replace(b'\n', b'\n ').rstrip()
|
||||
else:
|
||||
return b' (none)'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue