[pypy-commit] pypy default: simplify
arigo
pypy.commits at gmail.com
Mon Feb 13 11:15:09 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r90093:21fe41563985
Date: 2017-02-13 17:06 +0100
http://bitbucket.org/pypy/pypy/changeset/21fe41563985/
Log: simplify
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1010,8 +1010,7 @@
w_import = self.get_builtin().getdictvalue(space, '__import__')
if w_import is None:
- raise OperationError(space.w_ImportError,
- space.wrap("__import__ not found"))
+ raise oefmt(space.w_ImportError, "__import__ not found")
d = self.getdebug()
if d is None:
w_locals = None
More information about the pypy-commit
mailing list