-
Notifications
You must be signed in to change notification settings - Fork 114
Remove several mentions of Python 2 #190
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 |
|---|---|---|
| @@ -1 +0,0 @@ | ||
| six==1.16.0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| import ptf.parse | ||
| import ptf.ptfutils | ||
| import codecs | ||
| from six import StringIO | ||
| from io import StringIO | ||
|
|
||
| global skipped_test_count | ||
| skipped_test_count = 0 | ||
|
|
@@ -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): | ||
|
Member
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. this one must have been generated by some 2-to-3 tool...
Collaborator
Author
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 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 |
||
| if type(port) is int: | ||
| return 0, port | ||
| if type(port) is tuple: | ||
| return port | ||
|
|
||
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