Skip to content

BUG/COMPAT: io.common.get_filepath_or_buffer should use pass encoding parameter #9452

Closed
@TomAugspurger

Description

@TomAugspurger

Ran into this when downloading a file from s3 with py3.

This line needs to pass the encoding parameter to the boto method .get_contents_as_string, else it returns a stream of bytes which trips up StringIO on python 3.

Simple fix. Will try to get to it tonight unless someone beats me to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions