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 |
antoninbas
left a comment
There was a problem hiding this comment.
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
to remove the Python 2.7 mention
|
Removal of |
| 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.
nice job finding this one :P
|
|
||
|
|
||
| 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.
this one must have been generated by some 2-to-3 tool...
There was a problem hiding this comment.
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