| 1 | from __future__ import absolute_import, division, print_function |
| 2 | |
| 3 | import sys |
| 4 | |
| 5 | |
| 6 | __all__ = ["ABC", "text_type", "PY2"] |
| 7 | |
| 8 | PY2 = sys.version_info[0] == 2 |
| 9 | |
| 10 | |
| 11 | if PY2: |
| 12 | import abc |
| 13 | |
| 14 | text_type = unicode # noqa |
| 15 | |
| 16 | class ABC(object): |
| 17 | __metaclass__ = abc.ABCMeta |
| 18 | |
| 19 | |
| 20 | else: |
| 21 | from abc import ABC |
| 22 | |
| 23 | text_type = str |