Commit 0472c424 authored by Denis Bilenko's avatar Denis Bilenko

replace PyObject_GetAttrString with PyObject_GetAttr

parent 46847196
...@@ -16,7 +16,7 @@ static void gevent_handle_error(PyObject* loop, PyObject* where) { ...@@ -16,7 +16,7 @@ static void gevent_handle_error(PyObject* loop, PyObject* where) {
reported = 0; reported = 0;
handler = PyObject_GetAttrString(loop, "handle_error"); handler = PyObject_GetAttr(loop, __pyx_n_s__handle_error);
if (handler) { if (handler) {
if (handler != Py_None) { if (handler != Py_None) {
tuple = PyTuple_New(4); tuple = PyTuple_New(4);
...@@ -125,7 +125,7 @@ static void gevent_callback_simple(PyObject* callback, PyObject* watcher, PyObje ...@@ -125,7 +125,7 @@ static void gevent_callback_simple(PyObject* callback, PyObject* watcher, PyObje
static inline void gevent_stop(PyObject* self) { static inline void gevent_stop(PyObject* self) {
PyObject *result, *callable; PyObject *result, *callable;
callable = PyObject_GetAttrString(self, "stop"); callable = PyObject_GetAttr(self, __pyx_n_s__stop);
if (callable) { if (callable) {
result = PyObject_Call(callable, __pyx_empty_tuple, NULL); result = PyObject_Call(callable, __pyx_empty_tuple, NULL);
if (result) { if (result) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment