Skip to content

Python 2.7 incompatibility in POST requests #26

@bluefish6

Description

@bluefish6

version 1.2.0 in a66b74d#diff-60bc6d0e1237e90fd352225f9b3b997dR253 introduced a way to send POST requests that causes incompatibility with python 2.7, which can be easily averted by using encode('utf-8') instead of bytes():

change from:

payload = bytes(self._assemble_quoted_pairs(api_params), encoding='utf_8')

to:

payload = self._assemble_quoted_pairs(api_params).encode('utf_8')

Please change it so it will still work in Python 2. I know that Python 2 is already EOL, but the workaround is too easy to implement to break the compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions