summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-03-23 18:14:41 +0000
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-03-23 18:14:41 +0000
commit26a1bd914f105e3d99d9fa921a9bab10e025de39 (patch)
tree105feaa2793a9dc381d693e042f19eb9d62d80d7
parentd4e6b29c2de74962fb1c5d4b6160f392b1213c6d (diff)
Cython Fix
Fixed the imports to cython objects and methods. Now is working with Cython 0.12.1 and devel branch SVN revision: 47394
-rw-r--r--ethumb/ethumb.client.pyx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethumb/ethumb.client.pyx b/ethumb/ethumb.client.pyx
index eb7f212..60803fa 100644
--- a/ethumb/ethumb.client.pyx
+++ b/ethumb/ethumb.client.pyx
@@ -15,7 +15,7 @@
15# You should have received a copy of the GNU Lesser General Public License 15# You should have received a copy of the GNU Lesser General Public License
16# along with this Python-Ethumb. If not, see <http://www.gnu.org/licenses/>. 16# along with this Python-Ethumb. If not, see <http://www.gnu.org/licenses/>.
17 17
18cimport python 18from python_ref cimport PyObject, Py_INCREF, Py_DECREF
19import traceback 19import traceback
20 20
21__extra_epydoc_fields__ = ( 21__extra_epydoc_fields__ = (
@@ -73,7 +73,7 @@ cdef void _generated_cb(void *data, Ethumb_Client *client, int id, char *file, c
73 73
74cdef void _generated_cb_free_data(void *data) with gil: 74cdef void _generated_cb_free_data(void *data) with gil:
75 obj = <object>data 75 obj = <object>data
76 python.Py_DECREF(obj) 76 Py_DECREF(obj)
77 77
78cdef char *str_to_c(object s): 78cdef char *str_to_c(object s):
79 cdef char *mystr 79 cdef char *mystr
@@ -587,7 +587,7 @@ cdef class Client:
587 r = ethumb_client_generate(self.obj, _generated_cb, <void*>targs, 587 r = ethumb_client_generate(self.obj, _generated_cb, <void*>targs,
588 _generated_cb_free_data) 588 _generated_cb_free_data)
589 if r >= 0: 589 if r >= 0:
590 python.Py_INCREF(targs) 590 Py_INCREF(targs)
591 return r 591 return r
592 else: 592 else:
593 raise SystemError("could not generate thumbnail. " 593 raise SystemError("could not generate thumbnail. "