Replace map with list comprehension

This commit is contained in:
Adrian Sampson 2016-06-30 15:47:39 -07:00
parent d04fe42cee
commit ec08272a06

View file

@ -1106,7 +1106,7 @@ def _load_plugins(config):
"""Load the plugins specified in the configuration.
"""
paths = config['pluginpath'].get(confit.StrSeq(split=False))
paths = list(map(util.normpath, paths))
paths = [util.normpath(p) for p in paths]
log.debug(u'plugin paths: {0}', util.displayable_path(paths))
import beetsplug