Skip to content

Commit

Permalink
Nuke classic style super, object inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Feb 16, 2023
1 parent 5d332e2 commit caf0037
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integration/integration.py
Expand Up @@ -5,7 +5,7 @@
from invoke import run


class integration(object):
class integration:
def setup_method(self):
self.cwd = os.getcwd()

Expand Down
4 changes: 2 additions & 2 deletions integration/util.py
Expand Up @@ -18,7 +18,7 @@
unreleased_bugs = os.path.join(support, "unreleased_bugs", "changelog.rst")


class get_doctree_(object):
class get_doctree_:
def obtains_app_and_doctree_from_filepath(self):
app, doctree = get_doctree(vanilla)
# Expect doctree & app
Expand All @@ -38,7 +38,7 @@ def obtains_app_and_doctree_from_filepath(self):
assert bug.number == "1"


class parse_changelog_(object):
class parse_changelog_:
def yields_releases_dict_from_changelog_path(self):
changelog = parse_changelog(vanilla)
assert changelog
Expand Down
2 changes: 1 addition & 1 deletion releases/line_manager.py
Expand Up @@ -11,7 +11,7 @@ def __init__(self, app):
:param app: The core Sphinx app object. Mostly used for config.
"""
super(LineManager, self).__init__()
super().__init__()
self.app = app

@property
Expand Down
2 changes: 1 addition & 1 deletion releases/models.py
Expand Up @@ -11,7 +11,7 @@ class Version(StrictVersion):
"""

def __init__(self, version_string, partial=True):
super(Version, self).__init__(version_string, partial)
super().__init__(version_string, partial)


# Issue type list (keys) + color values
Expand Down
2 changes: 1 addition & 1 deletion tests/organization.py
Expand Up @@ -17,7 +17,7 @@
)


class organization(object):
class organization:
"""
Organization of issues into releases (parsing)
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/presentation.py
Expand Up @@ -25,7 +25,7 @@ def _expect_type(node, cls):
assert isinstance(node, cls), msg


class presentation(object):
class presentation:
"""
Expansion/extension of docutils nodes (rendering)
"""
Expand Down

0 comments on commit caf0037

Please sign in to comment.