-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[RHELC-297] Fix the format of message about unavailable kernel modules. #651
[RHELC-297] Fix the format of message about unavailable kernel modules. #651
Conversation
In oamg#469, one of the cleanups ended up calling `"\n".join()` on a list of kernel modules twice. The first time changes the list into a string with each entry separated by a newline but the second time changes the string into another string with each chatacter separated by a newline. Fixed that by removing the second `str.join()`. This also refactors away a call to `map()` and use of `lambda`. In modern python, any uses of `map()` or `filter()` can be replaced with either a generator expression or list comprehension. Related to oamg#469
for more information, see https://pre-commit.ci
Codecov ReportBase: 93.35% // Head: 93.35% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #651 +/- ##
=======================================
Coverage 93.35% 93.35%
=======================================
Files 22 22
Lines 3145 3145
Branches 558 558
=======================================
Hits 2936 2936
Misses 147 147
Partials 62 62
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…s. (oamg#651) * Fix the format of message about unavailable kernel modules. In oamg#469, one of the cleanups ended up calling `"\n".join()` on a list of kernel modules twice. The first time changes the list into a string with each entry separated by a newline but the second time changes the string into another string with each chatacter separated by a newline. Fixed that by removing the second `str.join()`. This also refactors away a call to `map()` and use of `lambda`. In modern python, any uses of `map()` or `filter()` can be replaced with either a generator expression or list comprehension. Related to oamg#469 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…s. (oamg#651) * Fix the format of message about unavailable kernel modules. In oamg#469, one of the cleanups ended up calling `"\n".join()` on a list of kernel modules twice. The first time changes the list into a string with each entry separated by a newline but the second time changes the string into another string with each chatacter separated by a newline. Fixed that by removing the second `str.join()`. This also refactors away a call to `map()` and use of `lambda`. In modern python, any uses of `map()` or `filter()` can be replaced with either a generator expression or list comprehension. Related to oamg#469 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…s. (#651) * Fix the format of message about unavailable kernel modules. In #469, one of the cleanups ended up calling `"\n".join()` on a list of kernel modules twice. The first time changes the list into a string with each entry separated by a newline but the second time changes the string into another string with each chatacter separated by a newline. Fixed that by removing the second `str.join()`. This also refactors away a call to `map()` and use of `lambda`. In modern python, any uses of `map()` or `filter()` can be replaced with either a generator expression or list comprehension. Related to #469 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
In #469, one of the cleanups ended up calling
"\n".join()
on a list of kernel modules twice. The first time changes the list into a string with each entry separated by a newline but the second time changes the string into another string with each chatacter separated by a newline. Fixed that by removing the secondstr.join()
.This also refactors away a call to
map()
and use oflambda
. In modern python, any uses ofmap()
orfilter()
can be replaced with either a generator expression or list comprehension.Related to #469
Jira Issue: RHELC-297
Checklist
[RHELC-]
is part of the PR titleRelease Pending