File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ from .ext import ExtType, Timestamp
16
16
cdef extern from " Python.h" :
17
17
18
18
int PyMemoryView_Check(object obj)
19
- char * PyUnicode_AsUTF8AndSize(object obj, Py_ssize_t * l) except NULL
20
-
21
19
22
20
cdef extern from " pack.h" :
23
21
struct msgpack_packer:
@@ -26,11 +24,9 @@ cdef extern from "pack.h":
26
24
size_t buf_size
27
25
bint use_bin_type
28
26
29
- int msgpack_pack_int(msgpack_packer* pk, int d)
30
27
int msgpack_pack_nil(msgpack_packer* pk)
31
28
int msgpack_pack_true(msgpack_packer* pk)
32
29
int msgpack_pack_false(msgpack_packer* pk)
33
- int msgpack_pack_long(msgpack_packer* pk, long d)
34
30
int msgpack_pack_long_long(msgpack_packer* pk, long long d)
35
31
int msgpack_pack_unsigned_long_long(msgpack_packer* pk, unsigned long long d)
36
32
int msgpack_pack_float(msgpack_packer* pk, float d)
@@ -191,9 +187,6 @@ cdef class Packer(object):
191
187
continue
192
188
else :
193
189
raise OverflowError (" Integer value out of range" )
194
- elif PyInt_CheckExact(o) if strict_types else PyInt_Check(o):
195
- longval = o
196
- ret = msgpack_pack_long(& self .pk, longval)
197
190
elif PyFloat_CheckExact(o) if strict_types else PyFloat_Check(o):
198
191
if self .use_float:
199
192
fval = o
You can’t perform that action at this time.
0 commit comments