Files
pre-commit/pre_commit/five.py
2014-08-13 11:02:28 -07:00

11 lines
240 B
Python

from __future__ import unicode_literals
# 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