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

Remove unicode string indicatiors #1161

Merged
merged 6 commits into from
Jan 6, 2020
Merged

Remove unicode string indicatiors #1161

merged 6 commits into from
Jan 6, 2020

Conversation

PythonCoderAS
Copy link
Contributor

While writing stubs, I was looking through the code and realized there is still a lot of Python2 compliant code. This was a simple fix to remove unicode prefixes on a bunch of items. However, several things still do a whole bunch of weird things to deal with unicode. An example is the Praw API Exception, which escapes unicode characters. In Python3, this should not be done, and I will implement a fix for that later.

@PythonCoderAS
Copy link
Contributor Author

A commit like my recent commit is going to break programs that rely on the given behavior of unicode escaping. Should I build in a method to do it or just note that they need to escape on their own?

@PythonCoderAS
Copy link
Contributor Author

Here is a git patch (compressed as a gzip to support uploading) to get the python util that I was using to find the changes and approve them.
Find_unicode_strings_and_future_imports.patch.gz

Copy link
Member

@bboe bboe left a comment

Choose a reason for hiding this comment

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

I think we can delete the one assertion, otherwise, this change looks great.

@bboe
Copy link
Member

bboe commented Dec 26, 2019

As this is a breaking change I'm going to hold off on merging it for now until after our next minor release. It would be great to make a PR that only has deprecation changelog entry indicating that in the next release we'll change this behavior.

@PythonCoderAS
Copy link
Contributor Author

@bboe got it but you are always welcome of making PRs onto my branches as well :)

@bboe
Copy link
Member

bboe commented Dec 27, 2019

@bboe got it but you are always welcome of making PRs onto my branches as well :)

For sure. Unfortunately, I really only have time to review, and I'm barely keeping up at that ;).

@PythonCoderAS
Copy link
Contributor Author

Lol I have break and I'm an HS student so I got all the time on my hands :)

@bboe bboe added the Major Change Delay until next major update label Dec 29, 2019
@bboe bboe merged commit 3cd7352 into praw-dev:master Jan 6, 2020
@PythonCoderAS PythonCoderAS deleted the remove-unicode-strings branch January 6, 2020 11:02
jarhill0 added a commit to jarhill0/praw that referenced this pull request Jan 7, 2020
…AS/remove-unicode-strings"

This reverts commit 3cd7352, reversing
changes made to ff8ac53.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Major Change Delay until next major update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants