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

[procdockerstatsd] Convert to Python 3 #5657

Merged
merged 1 commit into from
Oct 19, 2020
Merged

[procdockerstatsd] Convert to Python 3 #5657

merged 1 commit into from
Oct 19, 2020

Conversation

jleveque
Copy link
Contributor

- Why I did it

Python 2 is deprecated and no longer supported. This is part of moving all Python code in SONiC to Python 3.

- How I did it

Make procdockerstatsd Python 3-compliant and set interpreter to python3 in shebang. Also some other cleanup to improve code reuse.

- How to verify it

Run procdockerstatsd, ensure it functions correctly.

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

  • 201811
  • 201911
  • 202006

@lguohan
Copy link
Collaborator

lguohan commented Oct 18, 2020

i think it is better to put hostcfgd, caclmgrd, and this one into a host-service wheel package so that later we can add unit test framework to that. it can be a separate pr.

@jleveque
Copy link
Contributor Author

i think it is better to put hostcfgd, caclmgrd, and this one into a host-service wheel package so that later we can add unit test framework to that. it can be a separate pr.

Agreed. Once they are all converted to Python 3 we should do this.

@jleveque jleveque merged commit 678b663 into sonic-net:master Oct 19, 2020
@jleveque jleveque deleted the procdockerstats_py3 branch October 19, 2020 16:46
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
Make procdockerstatsd Python 3-compliant and set interpreter to python3 in shebang. Also some other cleanup to improve code reuse.
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.

3 participants