From 6cd7998c3d9b23a64bc534f46eb53c1607f44752 Mon Sep 17 00:00:00 2001 From: Andrew Rogl Date: Sun, 26 Sep 2021 16:27:20 +1000 Subject: [PATCH] Forgot to pyupgrade new file --- beetsplug/albumtypes.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/beetsplug/albumtypes.py b/beetsplug/albumtypes.py index a73d41b4e..47f8dc64e 100644 --- a/beetsplug/albumtypes.py +++ b/beetsplug/albumtypes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # This file is part of beets. # Copyright 2021, Edgars Supe. # @@ -16,7 +14,6 @@ """Adds an album template field for formatted album types.""" -from __future__ import division, absolute_import, print_function from beets.autotag.mb import VARIOUS_ARTISTS_ID from beets.library import Album @@ -28,7 +25,7 @@ class AlbumTypesPlugin(BeetsPlugin): def __init__(self): """Init AlbumTypesPlugin.""" - super(AlbumTypesPlugin, self).__init__() + super().__init__() self.album_template_fields['atypes'] = self._atypes self.config.add({ 'types': [ @@ -54,8 +51,8 @@ class AlbumTypesPlugin(BeetsPlugin): bracket_l = bracket[0] bracket_r = bracket[1] else: - bracket_l = u'' - bracket_r = u'' + bracket_l = '' + bracket_r = '' res = '' albumtypes = item.albumtypes.split('; ')