diff options
| author | 2014-07-30 17:02:25 +0200 | |
|---|---|---|
| committer | 2014-07-30 17:02:25 +0200 | |
| commit | e05f126216fda0eaa6afcadde275ef2a838f3b53 (patch) | |
| tree | 684a2f180ed1f4377d5a803dea93721ee2660ac0 /cython | |
| parent | 82e90578d2aaa178ddc6609fde8890db93b6b07b (diff) | |
| download | libplist-e05f126216fda0eaa6afcadde275ef2a838f3b53.tar.gz libplist-e05f126216fda0eaa6afcadde275ef2a838f3b53.tar.bz2 | |
cython: Fix Python library import fail due to removed 'plist_set_type' symbol
Diffstat (limited to 'cython')
| -rw-r--r-- | cython/plist.pyx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index 512594a..8ca668f 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx | |||
| @@ -78,8 +78,6 @@ cdef extern from *: | |||
| 78 | plist_t plist_get_parent(plist_t node) | 78 | plist_t plist_get_parent(plist_t node) |
| 79 | plist_type plist_get_node_type(plist_t node) | 79 | plist_type plist_get_node_type(plist_t node) |
| 80 | 80 | ||
| 81 | void plist_set_type(plist_t node, plist_type type) | ||
| 82 | |||
| 83 | void plist_from_xml(char *plist_xml, uint32_t length, plist_t * plist) | 81 | void plist_from_xml(char *plist_xml, uint32_t length, plist_t * plist) |
| 84 | void plist_from_bin(char *plist_bin, uint32_t length, plist_t * plist) | 82 | void plist_from_bin(char *plist_bin, uint32_t length, plist_t * plist) |
| 85 | 83 | ||
| @@ -337,8 +335,7 @@ cdef class Key(Node): | |||
| 337 | raise ValueError("Requires unicode input, got %s" % type(value)) | 335 | raise ValueError("Requires unicode input, got %s" % type(value)) |
| 338 | c_utf8_data = utf8_data | 336 | c_utf8_data = utf8_data |
| 339 | self._c_node = plist_new_string("") | 337 | self._c_node = plist_new_string("") |
| 340 | plist_set_type(self._c_node, PLIST_KEY) | 338 | plist_set_key_val(self._c_node, c_utf8_data) |
| 341 | #plist_set_key_val(self._c_node, c_utf8_data) | ||
| 342 | 339 | ||
| 343 | def __repr__(self): | 340 | def __repr__(self): |
| 344 | s = self.get_value() | 341 | s = self.get_value() |
