[pypy-commit] pypy py3.5: fix
arigo
pypy.commits at gmail.com
Fri Nov 25 03:24:31 EST 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r88653:87cc1c9f050a
Date: 2016-11-25 09:23 +0100
http://bitbucket.org/pypy/pypy/changeset/87cc1c9f050a/
Log: fix
diff --git a/pypy/module/cpyext/modsupport.py b/pypy/module/cpyext/modsupport.py
--- a/pypy/module/cpyext/modsupport.py
+++ b/pypy/module/cpyext/modsupport.py
@@ -123,5 +123,5 @@
# and returns a "char *" inside this PyStringObject.
if not isinstance(w_mod, Module):
raise oefmt(space.w_SystemError, "PyModule_GetName(): not a module")
- from pypy.module.cpyext.bytesobject import PyString_AsString
- return PyString_AsString(space, as_pyobj(space, w_mod.w_name))
+ from pypy.module.cpyext.unicodeobject import _PyUnicode_AsString
+ return _PyUnicode_AsString(space, as_pyobj(space, w_mod.w_name))
More information about the pypy-commit
mailing list