Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
353 B

5 years ago
  1. """Python 2/3 compatibility definitions.
  2. These are used by the rest of Elpy to keep compatibility definitions
  3. in one place.
  4. """
  5. import sys
  6. if sys.version_info >= (3, 0):
  7. PYTHON3 = True
  8. import builtins
  9. from io import StringIO
  10. else:
  11. PYTHON3 = False
  12. import __builtin__ as builtins # noqa
  13. from StringIO import StringIO # noqa