mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add a missing no-cover to increase coverage under py3
This commit is contained in:
parent
1f9f7379a1
commit
f3802e7944
1 changed files with 2 additions and 2 deletions
|
|
@ -150,10 +150,10 @@ class CalledProcessError(RuntimeError):
|
||||||
def to_text(self):
|
def to_text(self):
|
||||||
return self.to_bytes().decode('UTF-8')
|
return self.to_bytes().decode('UTF-8')
|
||||||
|
|
||||||
if five.PY3: # pragma: no cover
|
if five.PY3: # pragma: no cover (py3)
|
||||||
__bytes__ = to_bytes
|
__bytes__ = to_bytes
|
||||||
__str__ = to_text
|
__str__ = to_text
|
||||||
else:
|
else: # pragma: no cover (py2)
|
||||||
__str__ = to_bytes
|
__str__ = to_bytes
|
||||||
__unicode__ = to_text
|
__unicode__ = to_text
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue