-
Notifications
You must be signed in to change notification settings - Fork 292
Remove dangling use of python-future from rrdd.py #6247
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
Conversation
Signed-off-by: Mark Syms <mark.syms@cloud.com>
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.
The future is now.
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.
👍
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.
I think these were used during the Py2->3 upgrade, and a noop now.
@@ -46,11 +46,6 @@ | |||
|
|||
from __future__ import print_function | |||
|
|||
from future import standard_library | |||
standard_library.install_aliases() |
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.
If you drop this, you need httplib and xmlrpclib for Py2.7 compatibility.
Those are the only ones, so I'd suggest this form:
try:
import http.client
except ImportError:
import httplib
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.
we have dropped python2.7 support on xapi master.
Yangtze support is on another release branch.
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.
This isn't packaged for Python 2 anymore
Except for requiring python3-future as an RPM requires. |
No description provided.