Skip to content

Commit 6dfcbb4

Browse files
committed
Fix encoding issue on UCS-2 Python
1 parent 811fe1b commit 6dfcbb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bencoder.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ encode_func = {
167167

168168

169169
def bencode(x):
170-
cdef array.array r = array.array('b')
170+
cdef array.array r = array.array(b'b')
171171
encode(x, r)
172172
return r.tobytes()

0 commit comments

Comments
 (0)