Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of six and fix str/unicode types regression that became active on Python 3. #4533

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

jezdez
Copy link
Member

@jezdez jezdez commented Jan 10, 2020

  • Bug Fix

Description

Get rid of six and fix str/unicode types regression that became active on Python 3.

This was introduced in d38ca80.

Related Tickets & Documents

Refs #4055 (review)

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

@jezdez jezdez requested review from arikfr and rauchy January 10, 2020 14:18
@jezdez jezdez changed the title ## What type of PR is this? (check all applicable) <!-- Please leave only what's applicable --> Get rid of six and fix str/unicode types regression that became active on Python 3. Jan 10, 2020
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Just so I understand: was there an actual issue caused here or it's just to keep things clean?

@jezdez
Copy link
Member Author

jezdez commented Jan 13, 2020

I'm working on a rebase with current Redash master and this just came up since one of our extensions wasn't working right and I stumbled over a similar code pieces. From there I wondered if that would be also wrong in Redash upstream.

I don't think we should consider this just to keep things clean, it's actually a big risk for query runners that may return bytes or unicode data since bytes aren't handled at all right now, e.g. https://github.com/getredash/redash/pull/4533/files#diff-cc1177c16e24f67a5b4d1b3ad412d773L21-R20. But the removal of six is certainly a cleanup.

@arikfr arikfr merged commit a7ef3ad into master Jan 14, 2020
@arikfr arikfr deleted the six-removal branch January 14, 2020 10:51
@arikfr
Copy link
Member

arikfr commented Jan 14, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants