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

[core_uploader.py] Convert to Python 3; Use logger from sonic-py-common for uniform logging #5790

Merged
merged 5 commits into from
Nov 5, 2020
Merged

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Nov 3, 2020

- Why I did it

As part of moving all SONiC code from Python 2 (no longer supported) to Python 3

- How I did it

  • Convert core_uploader.py script to Python 3
  • Use logger from sonic-py-common for uniform logging
  • Reorganize imports alphabetically per PEP8 standard
  • Two blank lines precede functions per PEP8 standard
  • Remove unnecessary global variable declarations

- How to verify it

Ensure core_uploader.py still functions correctly

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

@lgtm-com

This comment has been minimized.

@lgtm-com
Copy link

lgtm-com bot commented Nov 3, 2020

This pull request fixes 6 alerts when merging 418f6e9 into 9d73552 - view on LGTM.com

fixed alerts:

  • 6 for Use of 'global' at module level

renukamanavalan
renukamanavalan previously approved these changes Nov 3, 2020
Copy link
Contributor

@renukamanavalan renukamanavalan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Joe!

@lgtm-com
Copy link

lgtm-com bot commented Nov 4, 2020

This pull request fixes 6 alerts when merging 62b0522 into 215ce13 - view on LGTM.com

fixed alerts:

  • 6 for Use of 'global' at module level

renukamanavalan
renukamanavalan previously approved these changes Nov 4, 2020
@lgtm-com
Copy link

lgtm-com bot commented Nov 4, 2020

This pull request fixes 6 alerts when merging 3825a63 into ba7fda7 - view on LGTM.com

fixed alerts:

  • 6 for Use of 'global' at module level

@jleveque jleveque marked this pull request as ready for review November 5, 2020 19:17
@jleveque jleveque merged commit d804598 into sonic-net:master Nov 5, 2020
@jleveque jleveque deleted the core_uploader_py3 branch November 5, 2020 19:19
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…on for uniform logging (sonic-net#5790)

- Convert core_uploader.py script to Python 3
- Use logger from sonic-py-common for uniform logging
- Reorganize imports alphabetically per PEP8 standard
- Two blank lines precede functions per PEP8 standard
- Remove unnecessary global variable declarations
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.

2 participants