Skip to content

Commit 992659a

Browse files
committed
Fix bytes parsing when used with python-future
1 parent 23e458f commit 992659a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bencoder.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ cdef encode_long(x, list r):
125125
r.append(b'e')
126126

127127

128-
cdef encode_bytes(bytes x, list r):
128+
cdef encode_bytes(x, list r):
129129
r.append(str(len(x)).encode())
130130
r.append(b':')
131131
r.append(x)

0 commit comments

Comments
 (0)