-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove all sys.version_info checks, presuming Python 3.5+ (Second try) #456
Conversation
@carver can give me a hint of why this is failing? |
Are you familiar with looking at the Travis logs? Click on Details next to "The Travis CI build failed", then you can click on a particular failing build to get the full logs. I didn't look at all the failures, but one of them is because Also, all the version_info checks should be able to be completely deleted. So if the original is: if sys.version_info < (3, 3):
do_something()
else:
do_something_py2() Then it should all be replaced with only: do_something() |
Thanks, I'll take a look! |
@carver I removed the remaining sys.version_info from the tests. I let only one sys.version_info and is in web3/init.py to let the user know that they need to use python 3.5 or above to use web3.py without problems. |
Does this PR have something else to be done? @carver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
if sys.version_info.major < 3: | ||
raise EnvironmentError("Python 3 is required") | ||
if sys.version_info < (3, 5): | ||
raise EnvironmentError("Python 3.5 or above is required") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for catching this.
What was wrong?
It have python 2 and python 3.3 checks all over the places.
How was it fixed?
I remove them carefully.
Cute Animal Picture