compat.py 218 B

1234567891011
  1. """Small modules to cope with python 2 vs 3 incompatibilities inside
  2. numpy.distutils
  3. """
  4. from __future__ import division, absolute_import, print_function
  5. import sys
  6. def get_exception():
  7. return sys.exc_info()[1]