Skip to content

Commit 5ab8916

Browse files
jrohelm-blaha
authored andcommitted
[automatic] Fix calling of BaseConfig.__init__()
1 parent fed60db commit 5ab8916

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dnf/automatic/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def update_baseconf(self, baseconf):
127127

128128
class CommandsConfig(dnf.conf.BaseConfig):
129129
def __init__(self, section='commands', parser=None):
130-
super(CommandsConfig, self).__init__(section, parser)
130+
super(CommandsConfig, self).__init__(section=section, parser=parser)
131131
self._add_option('apply_updates', dnf.conf.BoolOption(False))
132132
self._add_option('base_config_file', dnf.conf.Option('/etc/dnf/dnf.conf'))
133133
self._add_option('download_updates', dnf.conf.BoolOption(False))
@@ -142,7 +142,7 @@ def imply(self):
142142

143143
class EmailConfig(dnf.conf.BaseConfig):
144144
def __init__(self, section='email', parser=None):
145-
super(EmailConfig, self).__init__(section, parser)
145+
super(EmailConfig, self).__init__(section=section, parser=parser)
146146
self._add_option('email_to', dnf.conf.ListOption(["root"]))
147147
self._add_option('email_from', dnf.conf.Option("root"))
148148
self._add_option('email_host', dnf.conf.Option("localhost"))
@@ -154,7 +154,7 @@ class CommandConfig(dnf.conf.BaseConfig):
154154
_default_stdin_format = "{body}"
155155

156156
def __init__(self, section='command', parser=None):
157-
super(CommandConfig, self).__init__(section, parser)
157+
super(CommandConfig, self).__init__(section=section, parser=parser)
158158
self._add_option('command_format',
159159
dnf.conf.Option(self._default_command_format))
160160
self._add_option('stdin_format',
@@ -165,14 +165,14 @@ class CommandEmailConfig(CommandConfig):
165165
_default_command_format = "mail -s {subject} -r {email_from} {email_to}"
166166

167167
def __init__(self, section='command_email', parser=None):
168-
super(CommandEmailConfig, self).__init__(section, parser)
168+
super(CommandEmailConfig, self).__init__(section=section, parser=parser)
169169
self._add_option('email_to', dnf.conf.ListOption(["root"]))
170170
self._add_option('email_from', dnf.conf.Option("root"))
171171

172172

173173
class EmittersConfig(dnf.conf.BaseConfig):
174174
def __init__(self, section='emiter', parser=None):
175-
super(EmittersConfig, self).__init__(section, parser)
175+
super(EmittersConfig, self).__init__(section=section, parser=parser)
176176
self._add_option('emit_via', dnf.conf.ListOption(['email', 'stdio']))
177177
self._add_option('output_width', dnf.conf.IntOption(80))
178178
self._add_option('system_name', dnf.conf.Option(socket.gethostname()))

0 commit comments

Comments
 (0)