mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Make ordereddict a direct dependency.
This commit is contained in:
parent
203c554734
commit
a984a02c84
8 changed files with 17 additions and 11 deletions
|
|
@ -2,11 +2,10 @@ from __future__ import unicode_literals
|
|||
|
||||
"""five: six, redux"""
|
||||
# pylint:disable=invalid-name
|
||||
PY2 = (str is bytes)
|
||||
PY3 = (str is not bytes)
|
||||
PY2 = str is bytes
|
||||
PY3 = str is not bytes
|
||||
|
||||
# provide a symettrical `text` type to `bytes`
|
||||
if PY2:
|
||||
if PY2: # pragma: no cover (PY2 only)
|
||||
text = unicode # flake8: noqa
|
||||
else:
|
||||
else: # pragma: no cover (PY3 only)
|
||||
text = str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue