use list() on map() when we really want lists not iters

This commit is contained in:
Johnny Robeson 2016-05-29 20:49:06 -04:00
parent a37a52633b
commit 662bc1858d
2 changed files with 3 additions and 3 deletions

View file

@ -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__)

View file

@ -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