-
Notifications
You must be signed in to change notification settings - Fork 6
move to use max instead of if else in length, use list comprehension to simplify for loops #95
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
base: master
Are you sure you want to change the base?
Conversation
lshca/lshca.py
Outdated
| self.output.append(data) | ||
|
|
||
| def __add__(self,data): | ||
| self.output.append(data) |
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.
Why do we need it here?
lshca/lshca.py
Outdated
|
|
||
| # based on https://docs.mellanox.com/pages/viewpage.action?pageId=43714202#LinkLayerDiscoveryProtocol(LLDP)-lldptimer | ||
| lldp_capture_timeout = 35 # seconds. Based on default 30s value in Mellanox Onyx OS | ||
|
|
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 disagree with this section, please remove
lshca/lshca.py
Outdated
| port_count = 1 | ||
|
|
||
| while True: | ||
| while True and port_count < len(bdf_dev.port_list): |
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 introduced change has different functionality from existing code
No description provided.