summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2012-01-04 21:22:38 +0800
committerTay Ray Chuan <rctay89@gmail.com>2012-01-08 23:21:12 +0800
commitb2aabc20a2f1a80b642e03fd25577b0a03493331 (patch)
treef56f928b8e48771f1a56cf362dcbe8faccf7da40 /src/lxml/python.pxd
parent205bd63f8e091ca5c13f9c6ca18a66530211bdc1 (diff)
downloadpython-lxml-b2aabc20a2f1a80b642e03fd25577b0a03493331.tar.gz
reuse cython definitions for stdio.h
For existing cimports from libc.stdio, apply the stdio.* convention.
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd
index 4f065ae2..d402b9d0 100644
--- a/src/lxml/python.pxd
+++ b/src/lxml/python.pxd
@@ -1,4 +1,4 @@
-from libc.stdio cimport FILE
+from libc cimport stdio
cimport cython
cdef extern from "Python.h":
@@ -12,7 +12,7 @@ cdef extern from "Python.h":
cdef void Py_DECREF(object o)
cdef void Py_XDECREF(PyObject* o)
- cdef FILE* PyFile_AsFile(object p)
+ cdef stdio.FILE* PyFile_AsFile(object p)
cdef bint PyUnicode_Check(object obj)
cdef bint PyUnicode_CheckExact(object obj)