changeset 1459:18429fdf5339

cdefer: Call C functions more directly.
author Marcel Keller <mkeller@cs.au.dk>
date Mon, 26 Jul 2010 21:11:12 +0200
parents 5f8025eb7c0c
children 8e1b50599848
files viff/cdefer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/viff/cdefer.c	Mon Jul 26 21:05:15 2010 +0200
+++ b/viff/cdefer.c	Mon Jul 26 21:11:12 2010 +0200
@@ -661,7 +661,7 @@
             }
 
             if (PyObject_TypeCheck(self->result, &cdefer_DeferredType)) {
-                result = PyObject_CallMethod((PyObject *)self, "pause", NULL);
+                result = cdefer_Deferred_pause(self, NULL);
                 if (!result) {
                     return NULL;
                 }
@@ -812,7 +812,7 @@
     Py_XDECREF(self->result);
     self->result = result;
     Py_INCREF(self->result);
-    return PyObject_CallMethod((PyObject *)self, "unpause", NULL);
+    return cdefer_Deferred_unpause(self, NULL);
 }
 
 static struct PyMethodDef cdefer_Deferred_methods[] = {