summaryrefslogtreecommitdiff
path: root/numpy/dual.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 15:08:23 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commite1a9692cc36e4353798a332c834fce7aa6cf9b54 (patch)
treefc499f8768c8d2d99c64547cd1a0b7ae7e6018be /numpy/dual.py
parentcfd766456368777bcb0d5edabd360b3aeb02d3f8 (diff)
downloadnumpy-e1a9692cc36e4353798a332c834fce7aa6cf9b54.tar.gz
STY: Update exception styles, trickier ones.
Diffstat (limited to 'numpy/dual.py')
-rw-r--r--numpy/dual.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/dual.py b/numpy/dual.py
index 3c863bf6f..4aa01cd30 100644
--- a/numpy/dual.py
+++ b/numpy/dual.py
@@ -49,14 +49,14 @@ _restore_dict = {}
def register_func(name, func):
if name not in __all__:
- raise ValueError, "%s not a dual function." % name
+ raise ValueError("%s not a dual function." % name)
f = sys._getframe(0).f_globals
_restore_dict[name] = f[name]
f[name] = func
def restore_func(name):
if name not in __all__:
- raise ValueError, "%s not a dual function." % name
+ raise ValueError("%s not a dual function." % name)
try:
val = _restore_dict[name]
except KeyError: