__init__.py 493 B

123456789101112
  1. from __future__ import absolute_import
  2. import sys
  3. __future_module__ = True
  4. if sys.version_info[0] < 3:
  5. from __builtin__ import *
  6. # Overwrite any old definitions with the equivalent future.builtins ones:
  7. from future.builtins import *
  8. else:
  9. raise ImportError('This package should not be accessible on Python 3. '
  10. 'Either you are trying to run from the python-future src folder '
  11. 'or your installation of python-future is corrupted.')