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.
There was an error while loading. Please reload this page.
2 parents 1f9f737 + f3802e7 commit 6cf2a9bCopy full SHA for 6cf2a9b
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