-
Notifications
You must be signed in to change notification settings - Fork 886
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
initial work to remove py2 from the codebase #3421
Conversation
Yes. |
@mmerickel for docs updates, where do you want me to push? I can either create a new PR or push to your branch. I can do similar work on the cookiecutter as well. |
You can make a PR to my branch.
|
So at this point pyramid.compat is completely removed from this branch and the parts we want to keep are moved into pyramid.util. This is a good starting point for deciding if we want to bring anything back. I'd really appreciate some input! |
- `docs/tutorials/wiki/*` was written for Python 2 and supposedly won't run on Python 3. - `docs/api/compat.rst` because it drops some stuff and moves other bits into `pyramid.util` and should be part of another PR. - Ignored a couple of times where `env27` and `Python 2.` appear in command output, but they are inconsequential.
PR submitted for Python 2 removal from docs.
|
I asked this in private too, but |
I almost expected there to be a lot more deletes. |
@mmerickel I noticed there is no If so, are there any things that should not be documented? I started on the task "fix api docs for pyramid.compat" and slammed on the brakes when I realized there was no place to move documented things from compat to util. |
- Remove Python 2 items, and remove explicit mention of Python 3.
align line numbers with code.
I completed through the |
looks like mmerickel#8 is the PR referred to above |
Submitted a PR to fix the warnings in WebTest Pylons/webtest#207, which usually gets reviewed and merged rapidly, so didn't bother to include a warning for it.
All changes are done for the traversal wiki in mmerickel#8 (comment) |
Drop py2 from wiki (traversal and zodb)
@mmerickel why not also replace old-style formatting
|
Those would be contributions we could review in another PR but weren’t the focus of this one. The string formatting is the least interesting of the ones you mentioned. |
Using |
pyramid.compat
going forward (more on this below)pyramid.compat
pyramid.compat.native_
string_types
,integer_types
, and otherfoo_types
frompyramid.compat
pyramid.compat
in codebaseOne note is that it's important to remember to keep using
text_
andbytes_
where necessary for apis that may legitimately accept bytes or strings.what to do about pyramid.compat
pyramid.compat
is a public api and addons rely on it for some compatibility features.If we want to remove it, we should push a bugfix release in pyramid that deprecates the module to help people when upgrading.
closes #2903