-
Notifications
You must be signed in to change notification settings - Fork 18
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
Python 2 / 3 compatible imports. #10
Conversation
@pbauer can you help me with this review or should I ask someone else? |
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.
Thanks!
Is six a dependency in setup.py already?
A changelog entry is missing.
Added six as dependency and update CHANGELOG.
@tomgross I update with more compatible changes.
Still, there is some unused imports but I did not removed them at this stage. |
@tomgross should I change travis.yaml to use tox run the build with python 2.7, 3.4, 3.5 and 3.6? |
from sets import Set as set | ||
except ImportError: | ||
pass | ||
|
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.
Just remove the import and always use the built-in set
type.
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.
Done.
@rudaporto This package depends on GenericSetup (Python 3 upgrade is WIP) and ZServer (This package will probably never see Python 3) To get an overview what is achieved it is probably a good idea to have them with |
Maybe it is a good idea to have coveralls run too to see where the blind spots are. |
Apart from that this LGTM. |
We should make the dependency on # in Products/PluggableAuthService/plugins/RequestTypeSniffer.py
try:
from ZServer.FTPRequest import FTPReques
except ImportError:
class FTPRequest(object):
"""Dummy for missing ZServer's 'FTPRequest'.""" |
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.
LGTM
What has still to be done to get this PR merged? |
No description provided.