diff options
| author | scoder <none@none> | 2008-09-07 22:23:26 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2008-09-07 22:23:26 +0200 |
| commit | b1cc124cbc54acdb23bd9f563773f06417228d91 (patch) | |
| tree | 29ad1a4bb17b3556e130f8a3463b02ec08fb61a7 /src/lxml/python.pxd | |
| parent | cd0058b375193232b6583a7676dd3300e3cebc9a (diff) | |
| download | python-lxml-b1cc124cbc54acdb23bd9f563773f06417228d91.tar.gz | |
[svn r3969] r4788@delle: sbehnel | 2008-09-07 19:55:29 +0200
streamlined the _utf8() function (a very common helper function)
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/python.pxd')
| -rw-r--r-- | src/lxml/python.pxd | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd index 36d93beb..d100ad84 100644 --- a/src/lxml/python.pxd +++ b/src/lxml/python.pxd @@ -22,9 +22,10 @@ cdef extern from "Python.h": cdef FILE* PyFile_AsFile(object p) - cdef int PyUnicode_Check(object obj) - cdef int PyString_Check(object obj) - cdef int PyString_CheckExact(object obj) + cdef bint PyUnicode_Check(object obj) + cdef bint PyUnicode_CheckExact(object obj) + cdef bint PyString_Check(object obj) + cdef bint PyString_CheckExact(object obj) cdef object PyUnicode_FromEncodedObject(object s, char* encoding, char* errors) |
