Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9f737 commit f3802e7Copy full SHA for f3802e7
1 file changed
pre_commit/util.py
@@ -150,10 +150,10 @@ def to_bytes(self):
150
def to_text(self):
151
return self.to_bytes().decode('UTF-8')
152
153
- if five.PY3: # pragma: no cover
+ if five.PY3: # pragma: no cover (py3)
154
__bytes__ = to_bytes
155
__str__ = to_text
156
- else:
+ else: # pragma: no cover (py2)
157
__str__ = to_bytes
158
__unicode__ = to_text
159
0 commit comments