Closed jasonpenny closed 6 years ago
Merging in the code that uses future and requests-oauthlib created a problem with python2, creating a text post with spaces in the body is now raising an exception:
future
requests-oauthlib
txt = client.create_text( blogName, state="published", slug="testing-text-posts", title="Testing", body="testing1 2 3 4")
raised KeyError: 116 in urllib.quote
KeyError: 116
This change converts the future.types.newstr.newstr to bytes and fixes the problem
future.types.newstr.newstr
bytes
Merging in the code that uses
future
andrequests-oauthlib
created a problem with python2, creating a text post with spaces in the body is now raising an exception:raised
KeyError: 116
in urllib.quoteThis change converts the
future.types.newstr.newstr
tobytes
and fixes the problem