[pypy-commit] cffi default: Python 3 compat
arigo
pypy.commits at gmail.com
Wed Mar 16 13:29:32 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2649:c38d1fce0c24
Date: 2016-03-16 18:28 +0100
http://bitbucket.org/cffi/cffi/changeset/c38d1fce0c24/
Log: Python 3 compat
diff --git a/c/call_python.c b/c/call_python.c
--- a/c/call_python.c
+++ b/c/call_python.c
@@ -27,7 +27,7 @@
/* from there on, we know the (sub-)interpreter is still valid */
if (attr_name == NULL) {
- attr_name = PyString_InternFromString("__cffi_backend_extern_py");
+ attr_name = PyText_InternFromString("__cffi_backend_extern_py");
if (attr_name == NULL)
goto error;
}
diff --git a/testing/embedding/test_basic.py b/testing/embedding/test_basic.py
--- a/testing/embedding/test_basic.py
+++ b/testing/embedding/test_basic.py
@@ -142,7 +142,7 @@
env_extra[envname] = libpath
for key, value in sorted(env_extra.items()):
if os.environ.get(key) != value:
- print '* setting env var %r to %r' % (key, value)
+ print('* setting env var %r to %r' % (key, value))
os.environ[key] = value
def execute(self, name):
More information about the pypy-commit
mailing list