linting: fix use-dict-literal
Use the dict literal `{}` instead of `dict()`, this is a warning in
newer pylints and its consistent with what we do elsewhere.
This commit is contained in:
parent
873a071d43
commit
321587ad41
2 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ class PasswdLike:
|
|||
|
||||
def __init__(self):
|
||||
"""Initialize an empty PasswdLike object"""
|
||||
self.db = dict()
|
||||
self.db = {}
|
||||
|
||||
@classmethod
|
||||
def from_file(cls, path: PathLike, allow_missing_file: bool = False):
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class Subscriptions:
|
|||
parser = configparser.ConfigParser()
|
||||
parser.read_file(fp)
|
||||
|
||||
repositories = dict()
|
||||
repositories = {}
|
||||
for section in parser.sections():
|
||||
current = {
|
||||
"matchurl": cls._process_baseurl(parser.get(section, "baseurl"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue