mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
use list() on map() when we really want lists not iters
This commit is contained in:
parent
a37a52633b
commit
662bc1858d
2 changed files with 3 additions and 3 deletions
|
|
@ -192,7 +192,7 @@ class ImportSession(object):
|
|||
|
||||
# Normalize the paths.
|
||||
if self.paths:
|
||||
self.paths = map(normpath, self.paths)
|
||||
self.paths = list(map(normpath, self.paths))
|
||||
|
||||
def _setup_logging(self, loghandler):
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
|||
|
|
@ -736,8 +736,8 @@ def show_path_changes(path_changes):
|
|||
sources, destinations = zip(*path_changes)
|
||||
|
||||
# Ensure unicode output
|
||||
sources = map(util.displayable_path, sources)
|
||||
destinations = map(util.displayable_path, destinations)
|
||||
sources = list(map(util.displayable_path, sources))
|
||||
destinations = list(map(util.displayable_path, destinations))
|
||||
|
||||
# Calculate widths for terminal split
|
||||
col_width = (term_width() - len(' -> ')) // 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue