Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Headers are not being properly removed to do being encoded to bytesΒ #33

@onlynone

Description

@onlynone

I believe this commit: e88e32f broke the auto-header removal in yield_rows. The issue seems to be that the column names are encoded to 'utf8' in the headers array. This means they'll be a byte string like b'hostname'. But the data columns aren't byte strings, they're unicode strings like u'hostname'. At least in python3, these two values will not compare equal, so yield_rows thinks the first row of data is not the header row and prints it out.

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