+
Skip to content

Remove jencode and use native JSON support in requests #778

Open
@mattkram

Description

@mattkram

When anaconda-client was first written, requests didn't have a json= keyword argument, so there is a helper function binstar_client.utils.jencode that encodes a dictionary into bytes and then sets the correct Content-Type header. We can refactor that now, since it was added long ago in requests 2.4.2 via psf/requests#2258

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载