Skip to content

Avoid dependency on dbus-python#511

Merged
slyon merged 2 commits intocanonical:mainfrom
slyon:no-dbus-python
Sep 3, 2024
Merged

Avoid dependency on dbus-python#511
slyon merged 2 commits intocanonical:mainfrom
slyon:no-dbus-python

Conversation

@slyon
Copy link
Contributor

@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.

@slyon slyon requested a review from daniloegea August 29, 2024 10:54
Copy link
Contributor

@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
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