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

Avoid dependency on dbus-python #511

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Conversation

slyon
Copy link
Collaborator

@slyon slyon commented Aug 29, 2024

Description

call busctl (part of system) in favour of using dbus-python

python3-dbus is not in a good shape apparently:
https://lists.debian.org/debian-devel/2024/07/msg00226.html

Also use lazy % formatting in logging function, as suggested by pylint/TiCS:
https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/logging-fstring-interpolation.html

Fix ordering of imports, using isort while touching those files, too.

FR-8728

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

python3-dbus is not in a good shape apparently:
https://lists.debian.org/debian-devel/2024/07/msg00226.html

Also use lazy % formatting in logging function, as suggested by pylint/TiCS:
https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/logging-fstring-interpolation.html

Also fix ordering of imports, using isort
Also fix ordering of some imports, using isort
@slyon slyon requested a review from daniloegea August 29, 2024 10:54
Copy link
Collaborator

@daniloegea daniloegea left a comment

Choose a reason for hiding this comment

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

lgtm

@slyon slyon merged commit c973d9a into canonical:main Sep 3, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants