Fix bytes parsing when used with python-future by jameshilliard · Pull Request #41 · whtsky/bencoder.pyx · GitHub
Skip to content

Fix bytes parsing when used with python-future#41

Merged
whtsky merged 1 commit into
whtsky:masterfrom
jameshilliard:python-future
Nov 15, 2018
Merged

Fix bytes parsing when used with python-future#41
whtsky merged 1 commit into
whtsky:masterfrom
jameshilliard:python-future

Conversation

@jameshilliard

Copy link
Copy Markdown
Contributor

This allows bencoder.pyx to be used with python-future, if the bytes type is enforced I get this error:

  File "bencoder.pyx", line 174, in bencoder.bencode
  File "bencoder.pyx", line 106, in bencoder.encode
  File "stringsource", line 67, in cfunc.to_py.__Pyx_CFunc_object____object____list___to_py.wrap
  File "bencoder.pyx", line 155, in bencoder.encode_dict
  File "bencoder.pyx", line 106, in bencoder.encode
  File "stringsource", line 67, in cfunc.to_py.__Pyx_CFunc_object____object____list___to_py.wrap
  File "bencoder.pyx", line 154, in bencoder.encode_dict
TypeError: Expected bytes, got newbytes

@codecov

codecov Bot commented Nov 15, 2018

Copy link
Copy Markdown

@whtsky whtsky merged commit d6d801d into whtsky:master Nov 15, 2018
@whtsky

whtsky commented Nov 15, 2018

Copy link
Copy Markdown
Owner

thanks

@whtsky

whtsky commented Nov 15, 2018

Copy link
Copy Markdown
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants