mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
*: 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:
parent
c73f88b925
commit
bfa11beb73
@ -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):
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user