use reduce() from functools

This commit is contained in:
Johnny Robeson 2016-05-26 06:15:40 -04:00
parent 038c36b974
commit a405a072f7
3 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@ from beets import config
from beets.util import plurality
from beets.autotag import hooks
from beets.util.enumeration import OrderedEnum
from functools import reduce
# Artist signals that indicate "various artists". These are used at the
# album level to determine whether a given release is likely a VA

View file

@ -22,6 +22,7 @@ from operator import mul
from beets import util
from datetime import datetime, timedelta
import unicodedata
from functools import reduce
class ParsingError(ValueError):

View file

@ -21,6 +21,7 @@ import requests
import operator
from beets import plugins, ui
from functools import reduce
ACOUSTIC_BASE = "https://acousticbrainz.org/"
LEVELS = ["/low-level", "/high-level"]