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

drop six #294

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
xiaoge1001 wants to merge 1 commit into tlsfuzzer:master from xiaoge1001:master
Closed

drop six #294

xiaoge1001 wants to merge 1 commit into tlsfuzzer:master from xiaoge1001:master

Conversation

@xiaoge1001
Copy link

@xiaoge1001 xiaoge1001 commented Apr 12, 2022

do it. #293

Copy link

lgtm-com bot commented Apr 12, 2022

This pull request introduces 1 alert when merging 2f36ee9 into 6c20190 - view on LGTM.com

new alerts:

  • 1 for Syntax error

Copy link
Member

Sorry, but we don't plan dropping python2 support any time soon.

Copy link
Contributor

@xiaoge1001 thanks for your patch, it has been included on Debian

https://wiki.debian.org/Python3-six-removal

Copy link
Contributor

a-detiste commented Jan 6, 2024
edited
Loading

Actualy, six is not needed for b("literal"), b"literal"also works on Python2;
these lines could already be now merged.

Copy link
Member

tomato42 commented Jan 6, 2024

yes change to b'literal' is definitely something we can do (and you can see, happens in new code), but there are things like int_types that are still needed for py2 compatibility.

a-detiste reacted with thumbs up emoji

Copy link
Contributor

Yes yes... I'm almost done withj my pr "All those moments will be lost in time, like tears in rain."

Copy link
Contributor

Reducing the diff of 80%~90% would make life of downstreams easier.

from __future__ import division

import sys
from six import integer_types, PY2
Copy link

Choose a reason for hiding this comment

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

This breaks the if GMPY2 or GMPY case: it tries to do integer_types = tuple(integer_types + (type(mpz(1)),)) and gets a NameError as a result. I suggest adding integer_types = int, somewhere up here and reverting the other removals of integer_types in this file, as I just did in https://salsa.debian.org/python-team/packages/python-ecdsa/-/commit/3a95d8623d28d73c8c7877e6c3ddd5ee43e33ca4.

Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't be against putting integer_types into _compat.py instead of using it from six, feel free to open a new PR that does that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tomato42 tomato42 tomato42 left review comments

+1 more reviewer

@cjwatson cjwatson cjwatson left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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