Skip to content

Commit

Permalink
chore: remove remaining python2 compatibility workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfralle committed Jan 22, 2024
1 parent dfb1160 commit 32bab40
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mopidy_beets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_default_config(self):
return config.read(conf_file)

def get_config_schema(self):
schema = super(BeetsExtension, self).get_config_schema()
schema = super().get_config_schema()
schema["hostname"] = config.Hostname()
schema["port"] = config.Port()
return schema
Expand Down
2 changes: 1 addition & 1 deletion mopidy_beets/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BeetsBackend(pykka.ThreadingActor, backend.Backend):
uri_schemes = ["beets"]

def __init__(self, config, audio):
super(BeetsBackend, self).__init__()
super().__init__()

beets_endpoint = "http://%s:%s" % (
config["beets"]["hostname"],
Expand Down
6 changes: 3 additions & 3 deletions mopidy_beets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logger = logging.getLogger(__name__)


class cache(object): # noqa: N801
class cache:
# TODO: merge this to util library

def __init__(self, ctl=8, ttl=3600):
Expand Down Expand Up @@ -51,9 +51,9 @@ def _memoized(*args):
return _memoized


class BeetsRemoteClient(object):
class BeetsRemoteClient:
def __init__(self, endpoint, proxy_config):
super(BeetsRemoteClient, self).__init__()
super().__init__()
self.api = self._get_session(proxy_config)
self.api_endpoint = endpoint
logger.info("Connecting to Beets remote library %s", endpoint)
Expand Down
2 changes: 1 addition & 1 deletion mopidy_beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BeetsLibraryProvider(backend.LibraryProvider):
]

def __init__(self, *args, **kwargs):
super(BeetsLibraryProvider, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self.remote = self.backend.beets_api
self.category_browsers = []
for key, label, browser_class in self.root_categorie_list:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_extension.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import unittest

from mopidy_beets import BeetsExtension
Expand Down

0 comments on commit 32bab40

Please sign in to comment.