diff options
author | Nikias Bassen | 2019-08-08 00:14:11 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-08-08 00:14:11 +0200 |
commit | 6c684cc61a1189cc72d8609d49f3eb7cd954abab (patch) | |
tree | af0a16456962f40b2bf7526fc38ddca09d2c0faa /cython | |
parent | 121c834561b1b3f06259d32681cab0cff1a1a8ae (diff) | |
download | libplist-6c684cc61a1189cc72d8609d49f3eb7cd954abab.tar.gz libplist-6c684cc61a1189cc72d8609d49f3eb7cd954abab.tar.bz2 |
cython: Fix compilation
Diffstat (limited to 'cython')
-rw-r--r-- | cython/plist.pyx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index 3c6389c..d4f8d68 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx @@ -863,6 +863,8 @@ cpdef object load(fp, fmt=None, use_builtin_types=True, dict_type=dict): is_binary = fp.read(6) == 'bplist' fp.seek(0) + cdef object cb = None + if not fmt: if is_binary: if 'b' not in fp.mode: @@ -888,6 +890,8 @@ cpdef object load(fp, fmt=None, use_builtin_types=True, dict_type=dict): cpdef object loads(data, fmt=None, use_builtin_types=True, dict_type=dict): is_binary = data[0:6] == 'bplist' + cdef object cb = None + if fmt is not None: if fmt not in (FMT_XML, FMT_BINARY): raise ValueError('Format must be constant FMT_XML or FMT_BINARY') |