Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Improve python3 support #246

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

Improve python3 support #246

wants to merge 2 commits into from

Conversation

tobes
Copy link

@tobes tobes commented Jan 29, 2018

In python 3 long and int types have been unified and it is no longer
legal to use the L postfix to declare a long. As this postfix is used
in snakebite it fails under python 3. This commit improves python 3
support for some use cases.

It is not intended to make snakebite fully python 3 compatible in any
way but just to remove a common issue. This changes allows limited
functionality under python 3 which is enough for many use-cases.


This is basically a clean version of #203 and a simplification of #239 although maybe the changes to channel.py should be considered, but since they do not affect me I've not added them.

The impact on the codebase is minimal and this simple change can make a huge difference to users of python 3.x

Toby Dacre added 2 commits January 29, 2018 17:56
In python 3 long and int types have been unified and it is no longer
legal to use the L postfix to declare a long.  As this postfix is used
in snakebite it fails under python 3.  This commit improves python 3
support for some use cases.

It is not intended to make snakebite fully python 3 compatible in any
way but just to remove a common issue.  This changes allows limited
functionality under python 3 which is enough for many usecases.
@tobes
Copy link
Author

tobes commented Jan 29, 2018

I have added a second commit so that the tests pass. travis seems to have removed their python 2.6 environments. I can remove this is desired

@kevinneville
Copy link

Very appreciated if the change in snakebite/client.py could be merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants