Skip to content

Commit

Permalink
pylint: Fix use-list-literal
Browse files Browse the repository at this point in the history
Pylint 2.10 introduced new checker use-list-literal:
> Added use-list-literal: Emitted when list() is called with no
  arguments instead of using []

https://pylint.pycqa.org/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-10-0
pylint-dev/pylint#4365

Fixes: freeipa#244
Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed Feb 15, 2022
1 parent 727ea5c commit c493e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipahealthcheck/ipa/idns.py
Expand Up @@ -63,8 +63,8 @@ def check(self):
txt_rec = {}
srv_rec = {}
uri_rec = {}
a_rec = list()
aaaa_rec = list()
a_rec = []
aaaa_rec = []

for name, node in base_records.items():
for rdataset in node:
Expand Down

0 comments on commit c493e28

Please sign in to comment.