[pypy-commit] pypy multiphase: fix translation

rlamy pypy.commits at gmail.com
Mon Aug 28 17:52:56 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: multiphase
Changeset: r92277:4581a4a84e6f
Date: 2017-08-28 22:52 +0100
http://bitbucket.org/pypy/pypy/changeset/4581a4a84e6f/

Log:	fix translation

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -1522,6 +1522,7 @@
             look_for += ' or ' + also_look_for
         else:
             look_for = also_look_for
+    assert look_for is not None
     msg = u"function %s not found in library %s" % (
         look_for.decode('utf-8'), space.unicode_w(space.newfilename(path)))
     w_path = space.newfilename(path)


More information about the pypy-commit mailing list