mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
12 lines
263 B
Python
12 lines
263 B
Python
from __future__ import unicode_literals
|
|
|
|
"""five: six, redux"""
|
|
# pylint:disable=invalid-name
|
|
PY2 = str is bytes
|
|
PY3 = str is not bytes
|
|
|
|
if PY2: # pragma: no cover (PY2 only)
|
|
text = unicode # flake8: noqa
|
|
else: # pragma: no cover (PY3 only)
|
|
text = str
|