*: pylint: Don't inherit from 'object'

- This was required in Python 2 but useless in Python 3.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-06-22 18:38:50 -07:00 committed by James Valleroy
parent c73f88b925
commit bfa11beb73
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
6 changed files with 6 additions and 6 deletions

View File

@ -207,7 +207,7 @@ def webserver_disable(name, kind='config', apply_changes=True):
return action_required
class WebserverChange(object):
class WebserverChange:
"""Context to restart/reload Apache after configuration changes."""
def __init__(self):

View File

@ -120,7 +120,7 @@ def test_homepage_mapping_skip_ci():
assert _home_page_scid2url(uws_scid) is None
class Dict2Obj(object):
class Dict2Obj:
"""Mock object made out of any dict."""
def __init__(self, a_dict):

View File

@ -24,7 +24,7 @@ from .forms import (CreateUserForm, FirstBootForm, UserChangePasswordForm,
UserUpdateForm)
class ContextMixin(object):
class ContextMixin:
"""Mixin to add 'title' to the template context."""
def get_context_data(self, **kwargs):

View File

@ -252,7 +252,7 @@ class PackageException(Exception):
.format(self.error_string, self.error_details)
class Transaction(object):
class Transaction:
"""Information about an ongoing transaction."""
def __init__(self, module_name, package_names):

View File

@ -28,7 +28,7 @@ _is_shutting_down = False
_force_upgrader = None
class Helper(object):
class Helper:
"""Helper routines for modules to show progress."""
def __init__(self, module_name, module):

View File

@ -89,7 +89,7 @@ def is_user_admin(request, cached=False):
return user_is_admin
class YAMLFile(object):
class YAMLFile:
"""A context management class for updating YAML files"""
def __init__(self, yaml_file):