Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Misc fixes#91

Open
nphilipp wants to merge 7 commits intofedora-infra:developfrom
nphilipp:develop--misc-fixes
Open

Misc fixes#91
nphilipp wants to merge 7 commits intofedora-infra:developfrom
nphilipp:develop--misc-fixes

Conversation

@nphilipp
Copy link
Member

@nphilipp nphilipp commented Jul 2, 2020

Based on top of #90

  • Fix printing audit reports from dicts
  • flake8: Imports
  • Don't iterate over collections using indices

pypingou and others added 7 commits June 30, 2020 11:54
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Signed-off-by: Nils Philippsen <nils@redhat.com>
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
- use dict, list, set literals and comprehensions where sensible
- don't build lists from generators superfluously
- don't use dict.keys(), rather the dict var itself where an iterable is
  expected
- sorted() returns a list already
- remove Python 2 compat
- use f-strings, except for logging, don't use % operator there, for
  late interpolation
- remove u-strings from comments, too

Signed-off-by: Nils Philippsen <nils@redhat.com>
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Signed-off-by: Nils Philippsen <nils@redhat.com>
- fix order
- remove unused imports
- use unittest.mock instead of 3rd party mock
- import some oft-used objects directly rather than addressing them
  through their modules

Signed-off-by: Nils Philippsen <nils@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants