mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
11 lines
211 B
Python
11 lines
211 B
Python
"""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
|