summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdur-Rahmaan Janhangeer <cryptolabour@gmail.com>2018-12-26 05:56:28 +0000
committerEric Wieser <wieser.eric@gmail.com>2018-12-26 06:56:28 +0100
commit3d7e90c21f64e8905585c1e25f4fe64934171e7f (patch)
tree41619e69874684a0ef7b02299a11199a341c5e26
parentbae3cfa01dc160f3e1731c21bfd9158cbcd83c32 (diff)
downloadnumpy-3d7e90c21f64e8905585c1e25f4fe64934171e7f.tar.gz
MAINT: Use `*.format` for some strings (#12608)
-rw-r--r--numpy/dual.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/dual.py b/numpy/dual.py
index 3a16a8ec5..651e845bb 100644
--- a/numpy/dual.py
+++ b/numpy/dual.py
@@ -51,14 +51,14 @@ _restore_dict = {}
def register_func(name, func):
if name not in __all__:
- raise ValueError("%s not a dual function." % name)
+ raise ValueError("{} not a dual function.".format(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("{} not a dual function.".format(name))
try:
val = _restore_dict[name]
except KeyError: