-
Notifications
You must be signed in to change notification settings - Fork 103
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 several mentions of Python 2 #190
Remove several mentions of Python 2 #190
Conversation
Not all of them are removed with these changes, because I am not sure how best to remove some of them, e.g. in the file debian/control
This is at least a partial fix for issue #186 I did not remove all mentions of Python2, because I was not sure what the correct way to do so was for some of them, e.g. the one in the file |
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 the debian/
has not been updated for 7 years, so it's not a concern for me.
However, I think as part of this change, we should also remove the six
library dependency. And update
Line 22 in 9c1787d
python_requires = >=2.7, >=3 |
to remove the Python 2.7 mention
Removal of |
@@ -305,10 +305,7 @@ def forward(self, p, port): | |||
msg = struct.pack("<iii{}s".format(len(p)), self.MSG_TYPE_PACKET_OUT, | |||
port, len(p), p) | |||
# because nnpy expects unicode when using str | |||
if sys.version_info[0] == 2: |
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.
nice job finding this one :P
@@ -3179,7 +3179,7 @@ def ptf_ports(num=None): | |||
|
|||
|
|||
def port_to_tuple(port): | |||
if type(port) is int or (sys.version_info[0] == 2 and type(port) is int): |
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 one must have been generated by some 2-to-3 tool...
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 looked at the git commit history on this one, since it looked so strange. At one point it was less weird looking, I think something like is long
in the last part instead of is int
.
|
Not all of them are removed with these changes, because I am not sure how best to remove some of them, e.g. in the file debian/control