From 662bc1858d4b80be9819a5f581e50e48850a83bc Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sun, 29 May 2016 20:49:06 -0400 Subject: [PATCH] use list() on map() when we really want lists not iters --- beets/importer.py | 2 +- beets/ui/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/importer.py b/beets/importer.py index f9cd138f4..bfaa21a01 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -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__) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 933026b09..a75036c33 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -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