Skip to content

attempt to support modern Python3 versions #276

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

a-detiste
Copy link

python-xlib is today the top-most remaining user of six. We slowly try to remove six from the distribution

Copy link
Contributor

@Avasam Avasam left a comment

Choose a reason for hiding this comment

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

Here's a few additional replacements you're still missing:

six.MAXSIZE > sys.maxsize
six.iterbytes > iter
six.moves._thread > _thread
six.byte2int > operator.itemgetter(0), or just access [0] directly
six.text_type > str Only used where it's already a str, so just remove
six.indexbytes > Access directly with []
six.create_unbound_method > Just use the function directly

@a-detiste
Copy link
Author

Thanks.

I will réconciliate your tweaks with the one that ended up in the Debian patch https://sources.debian.org/src/python-xlib/0.33-3/debian/patches/remove_six.patch/

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.

2 participants