]>
Commit | Line | Data |
---|---|---|
53e6db90 DC |
1 | """Python 2/3 compatibility definitions. |
2 | ||
3 | These are used by the rest of Elpy to keep compatibility definitions | |
4 | in one place. | |
5 | ||
6 | """ | |
7 | ||
8 | import sys | |
9 | ||
10 | ||
11 | if sys.version_info >= (3, 0): | |
12 | PYTHON3 = True | |
13 | import builtins | |
14 | from io import StringIO | |
15 | else: | |
16 | PYTHON3 = False | |
17 | import __builtin__ as builtins # noqa | |
18 | from StringIO import StringIO # noqa |