File: compat.py

package info (click to toggle)
python-numpy 1%3A1.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,732 kB
  • ctags: 19,262
  • sloc: ansic: 146,995; python: 98,088; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (10 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
"""Small modules to cope with python 2 vs 3 incompatibilities inside
numpy.distutils

"""
from __future__ import division, absolute_import, print_function

import sys

def get_exception():
    return sys.exc_info()[1]