From f3802e794496f3f4ac7c3251f795fd64b3e7ef55 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 21 Mar 2016 15:21:22 -0700 Subject: [PATCH] Add a missing no-cover to increase coverage under py3 --- pre_commit/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit/util.py b/pre_commit/util.py index 3736d2e5..559ab703 100644 --- a/pre_commit/util.py +++ b/pre_commit/util.py @@ -150,10 +150,10 @@ class CalledProcessError(RuntimeError): def to_text(self): return self.to_bytes().decode('UTF-8') - if five.PY3: # pragma: no cover + if five.PY3: # pragma: no cover (py3) __bytes__ = to_bytes __str__ = to_text - else: + else: # pragma: no cover (py2) __str__ = to_bytes __unicode__ = to_text