Files
pre-commit/pre_commit/five.py
2014-06-15 18:49:45 -07:00

13 lines
252 B
Python

from __future__ import unicode_literals
"""five: six, redux"""
# pylint:disable=invalid-name
PY2 = (str is bytes)
PY3 = (str is not bytes)
# provide a symettrical `text` type to `bytes`
if PY2:
text = unicode # flake8: noqa
else:
text = str