Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cf2a9b

Browse files
committed
Merge pull request #356 from pre-commit/nocover_py3
Add a missing no-cover to increase coverage under py3
2 parents 1f9f737 + f3802e7 commit 6cf2a9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def to_bytes(self):
150150
def to_text(self):
151151
return self.to_bytes().decode('UTF-8')
152152

153-
if five.PY3: # pragma: no cover
153+
if five.PY3: # pragma: no cover (py3)
154154
__bytes__ = to_bytes
155155
__str__ = to_text
156-
else:
156+
else: # pragma: no cover (py2)
157157
__str__ = to_bytes
158158
__unicode__ = to_text
159159

0 commit comments

Comments
 (0)