summaryrefslogtreecommitdiff
path: root/numpy/core/records.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-03-01 08:36:46 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-03-01 08:36:46 -0700
commit02cfcb99bc976a0bfc39529999e2a0200fb9cc2a (patch)
treea2a2210d560d5696e47a5dcf5d969faa8d21ad79 /numpy/core/records.py
parentd1e692d70da7532b02d752d0842987333bd76c70 (diff)
parent3655b732bd08022dab8498b44191d6c4049bc7a8 (diff)
downloadnumpy-02cfcb99bc976a0bfc39529999e2a0200fb9cc2a.tar.gz
Merge branch '2to3-raise'
Use modern raise syntax for python 3 compatibility. * 2to3-raise: 2to3: Apply `raise` fixes. Closes #3077.
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r--numpy/core/records.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py
index 964b4a54e..2e55c48fb 100644
--- a/numpy/core/records.py
+++ b/numpy/core/records.py
@@ -436,7 +436,7 @@ class recarray(ndarray):
fielddict = ndarray.__getattribute__(self, 'dtype').fields or {}
if attr not in fielddict:
exctype, value = sys.exc_info()[:2]
- raise exctype, value
+ raise exctype(value)
else:
fielddict = ndarray.__getattribute__(self, 'dtype').fields or {}
if attr not in fielddict: