Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hotfix/post mortem #3

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

Closed
Owanesh wants to merge 7 commits into d3v-null:master from Owanesh:hotfix/post_mortem
Closed

Hotfix/post mortem #3

Owanesh wants to merge 7 commits into d3v-null:master from Owanesh:hotfix/post_mortem

Conversation

Copy link

@Owanesh Owanesh commented Feb 24, 2018

When you have a mismatch between version of WPRest and configuration of python api, you will not have a match with url and request goes into post_mortem.

Postmortem, generate "reason" variable in unicode format, but "unicode" is no longer supported in python3
{solved with lambda}

Postmortem, in python2, generate an error with concatenation of string, str + unicode = error
{solved with reason.encode('utf8')}

Remeic reacted with hooray emoji Remeic reacted with heart emoji
- Unicode message in post_mortem (py3)
- Unicode concatenation in post_mortem (py2)
Copy link

astagi commented Feb 24, 2018

+1

Remeic, vincentwhales, and cachance7 reacted with thumbs up emoji

Copy link
Owner

Hey all,
I'd like to apologise for neglecting this PR. I'll do my best today to integrate these changes into my fork along with the rest of the improvements that have happened since then.
The project which I made this repo for uses python2, and my test automated cases are not exhaustive enough to cover some of the python3 specific problems that underpin this, so I'll also be adding more test cases to increase coverage.
The solution that is proposed in this PR works specifically on Python3 but not Python2, which is why I need to re-work it to use six.text_type instead of str.
Thanks.

d3v-null pushed a commit that referenced this pull request Oct 13, 2018
d3v-null pushed a commit that referenced this pull request Oct 13, 2018
Copy link
Owner

All done! Please feel free to test / submit a failing test.
Thanks.

Owanesh reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /