Skip to content
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 3 compliance #1043

Merged
merged 7 commits into from
Aug 11, 2020
Merged

Python 3 compliance #1043

merged 7 commits into from
Aug 11, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Aug 11, 2020

As part of the migration from Python 2 to Python 3, this PR ensures that all Python files in sonic-utilities are Python 3-compliant, and work with both Python 2 and Python 3.

Once this is merged, we can begin building a Python 3-based version of the sonic-utilities package.

@lgtm-com
Copy link

lgtm-com bot commented Aug 11, 2020

This pull request introduces 1 alert when merging 3d093ec into 0225c09 - view on LGTM.com

new alerts:

  • 1 for Unused import

@lguohan
Copy link
Contributor

lguohan commented Aug 11, 2020

not sure why the build fails here.

pfc/main.py Outdated Show resolved Hide resolved
scripts/watermarkstat Outdated Show resolved Hide resolved
lguohan
lguohan previously approved these changes Aug 11, 2020
@jleveque
Copy link
Contributor Author

jleveque commented Aug 11, 2020

@lguohan:

not sure why the build fails here.

It looks like config reload is failing because the new port breakout functionality is trying to obtain the hwsku, but the database isn't populated: https://github.com/Azure/sonic-utilities/blob/master/config/main.py#L63

Not sure why we just started seeing this failure on this PR, though; it should have existed.

Edit: Fix here: #1045

Strange, but the retest passed, even though I was able to reproduce this issue locally...

@jleveque jleveque merged commit fdda5ac into sonic-net:master Aug 11, 2020
@jleveque jleveque deleted the python3_compliance branch August 11, 2020 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants