-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
CLN: Use pandas.compat instead of sys.version_info for Python version checks #20545
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2088,7 +2088,7 @@ def dec(f): | |
# and conditionally raise on these exception types | ||
_network_error_classes = (IOError, httplib.HTTPException) | ||
|
||
if sys.version_info >= (3, 3): | ||
if PY3: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since 3.0 - 3.4 are no longer supported, seems fine to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine with this change. We should be encouraging code that relies solely on the supported versions of Python and not do the C-esque thing of making it super-backwards-compatible 😄 |
||
_network_error_classes += (TimeoutError,) # noqa | ||
|
||
|
||
|
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.
Likewise, <3.3 implies
PY2
based on the currently supported versions. Could be more explicit if desired though.Uh oh!
There was an error while loading. Please reload this page.
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.
That's reasonable. 2.7, 3.5 - 3.6 are the only supported versions.