Skip to content

Commit 7e4ee46

Browse files
committed
Stop cdef array to fix PyPy support
1 parent 99d3f51 commit 7e4ee46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: bencoder.pyx

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
__version__ = '1.1.2'
1616

17-
from cpython cimport array
1817
import array
1918

2019
try:
@@ -169,6 +168,6 @@ encode_func = {
169168

170169

171170
def bencode(x):
172-
cdef array.array r = array.array(ARRAY_TYPECODE)
171+
r = array.array(ARRAY_TYPECODE)
173172
encode(x, r)
174173
return r.tostring()

0 commit comments

Comments
 (0)