Author: Ronan Lamy <ronan.l...@gmail.com> Branch: py3k Changeset: r85353:bb7d9f0e7453 Date: 2016-06-23 15:41 +0100 http://bitbucket.org/pypy/pypy/changeset/bb7d9f0e7453/
Log: fixes diff --git a/pypy/module/cpyext/test/test_bytesobject.py b/pypy/module/cpyext/test/test_bytesobject.py --- a/pypy/module/cpyext/test/test_bytesobject.py +++ b/pypy/module/cpyext/test/test_bytesobject.py @@ -80,7 +80,7 @@ if (t == NULL) return NULL; Py_DECREF(t); - c = PyBytes_AsString(s); + c = PyBytes_AS_STRING(s); c[0] = 'a'; c[1] = 'b'; c[2] = 0; diff --git a/pypy/module/cpyext/unicodeobject.py b/pypy/module/cpyext/unicodeobject.py --- a/pypy/module/cpyext/unicodeobject.py +++ b/pypy/module/cpyext/unicodeobject.py @@ -75,7 +75,6 @@ w_type = from_ref(space, rffi.cast(PyObject, py_obj.c_ob_type)) w_obj = space.allocate_instance(unicodeobject.W_UnicodeObject, w_type) w_obj.__init__(s) - py_uni.c_hash = space.hash_w(w_obj) track_reference(space, py_obj, w_obj) return w_obj _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit