mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Increase coverage moar
This commit is contained in:
parent
0fec434380
commit
7d4787eced
4 changed files with 14 additions and 8 deletions
|
|
@ -66,9 +66,9 @@ class PrefixedCommandRunner(object):
|
|||
proc = self.__popen(replaced_cmd, **popen_kwargs)
|
||||
stdout, stderr = proc.communicate(stdin)
|
||||
# TODO: stdout, stderr = from_bytes(stdout), from_bytes(stderr)
|
||||
if stdout is not None and not isinstance(stdout, five.text):
|
||||
if isinstance(stdout, bytes):
|
||||
stdout = five.text(stdout, 'utf-8')
|
||||
if stderr is not None and not isinstance(stderr, five.text):
|
||||
if isinstance(stderr, bytes):
|
||||
stderr = five.text(stderr, 'utf-8')
|
||||
returncode = proc.returncode
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue