diff options
-rw-r--r-- | numpy/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index ae297597e..07d67945c 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -202,9 +202,8 @@ else: from .testing import Tester return Tester else: - raise AttributeError( - "module %s has no attribute $s".format(__name__, attr)) - + raise AttributeError("module {!r} has no attribute " + "{!r}".format(__name__, attr)) def __dir__(): return __all__ + ['Tester', 'testing'] |