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

Use collections.abc on Python 3 #154

Closed
wants to merge 2 commits into from

Conversation

tiran
Copy link
Contributor

@tiran tiran commented Jun 25, 2018

Signed-off-by: Christian Heimes cheimes@redhat.com

@tiran tiran force-pushed the collections_abc branch 2 times, most recently from fb19a5e to ae173ee Compare June 25, 2018 15:41
@DirectXMan12
Copy link
Member

Please add a description to the commit and PR description as to why you're making the change. For example:

In Python 3.3+ (the earliest version of Python 3 that we support), the the ABCs for collections actually live in collections.abc, and should really be referred to from there, even though they're aliased into collections for compatibility purposes.

Also, the check should be if six.PY2 to match the rest of the way we do those checks.

@DirectXMan12
Copy link
Member

(follow-up -- is the alias being removed from collections at a concrete point in the future, or is this just to avoid any potential issues later down the line?)

@tiran
Copy link
Contributor Author

tiran commented Jun 25, 2018

The PR addresses https://bugzilla.redhat.com/show_bug.cgi?id=1594834 . The alias will be removed in 3.8.

@DirectXMan12
Copy link
Member

DirectXMan12 commented Jun 25, 2018

ok, that's fine. Please add it to the commit message and PR description (and make the other change I mentioned), and I'll merge the PR.

@frozencemetery
Copy link
Member

@tiran Hi, do you plan to revise this?

frozencemetery pushed a commit to tiran/python-gssapi that referenced this pull request Jul 16, 2018
Starting before Python 3.3 (which is the oldest version we support),
the ABCs for collections are located at collections.abc, but aliased
into collections.

Starting in Python 3.7, referring to them using the aliases produces
DeprecationWarnings, which breaks our users.  The alias will be
removed entirely in Python 3.8.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
[rharwood@redhat.com: Write commit message, update style on checks]
Merges: pythongssapi#154
frozencemetery pushed a commit to tiran/python-gssapi that referenced this pull request Jul 16, 2018
Starting before Python 3.3 (which is the oldest version we support),
the ABCs for collections are located at collections.abc, but aliased
into collections.

Starting in Python 3.7, referring to them using the aliases produces
DeprecationWarnings, which breaks our users.  The alias will be
removed entirely in Python 3.8.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
[rharwood@redhat.com: Write commit message, update style on checks]
Merges: pythongssapi#154
frozencemetery and others added 2 commits July 16, 2018 17:44
Starting before Python 3.3 (which is the oldest version we support),
the ABCs for collections are located at collections.abc, but aliased
into collections.

Starting in Python 3.7, referring to them using the aliases produces
DeprecationWarnings, which breaks our users.  The alias will be
removed entirely in Python 3.8.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
[rharwood@redhat.com: Write commit message, update style on checks]
Merges: pythongssapi#154
frozencemetery pushed a commit that referenced this pull request Jul 16, 2018
Starting before Python 3.3 (which is the oldest version we support),
the ABCs for collections are located at collections.abc, but aliased
into collections.

Starting in Python 3.7, referring to them using the aliases produces
DeprecationWarnings, which breaks our users.  The alias will be
removed entirely in Python 3.8.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
[rharwood@redhat.com: Write commit message, update style on checks]
Merges: #154
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.

None yet

3 participants