Codebase list distro-info / 9e22c0c
Fix issues found by pylint 2.6.0 pylint 2.6.0 complains: ``` distro_info.py:51:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) distro_info.py:182:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) distro_info.py:248:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) ``` Closes: #971094 Signed-off-by: Benjamin Drung <bdrung@debian.org> Benjamin Drung 3 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4747 """Distribution data outdated."""
4848
4949 def __init__(self):
50 super(DistroDataOutdated, self).__init__(
50 super().__init__(
5151 "Distribution data outdated. "
5252 "Please check for an update for distro-info-data. See "
5353 "/usr/share/doc/distro-info-data/README.Debian for details.")
178178 """provides information about Debian's distributions"""
179179
180180 def __init__(self):
181 super(DebianDistroInfo, self).__init__("Debian")
181 super().__init__("Debian")
182182
183183 def codename(self, release, date=None, default=None):
184184 """Map 'unstable', 'testing', etc. to their codenames."""
244244 """provides information about Ubuntu's distributions"""
245245
246246 def __init__(self):
247 super(UbuntuDistroInfo, self).__init__("Ubuntu")
247 super().__init__("Ubuntu")
248248
249249 def lts(self, date=None, result="codename"):
250250 """Get latest long term support (LTS) Ubuntu distribution based on the