From 24b2e2f8e1d8df944f6387b2c9bef3855065abc4 Mon Sep 17 00:00:00 2001 From: Jay Sweeney Date: Sat, 9 Nov 2013 14:06:43 +1000 Subject: Python 3.x compat: map is lazy in 3.x Closes: #21 --- dotfiles/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/core.py b/dotfiles/core.py index d126ca1..e3ac564 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -191,7 +191,7 @@ class Dotfiles(object): if not files: dotfiles = self.dotfiles else: - files = map(lambda x: os.path.join(self.homedir, x), files) + files = list(map(lambda x: os.path.join(self.homedir, x), files)) dotfiles = [x for x in self.dotfiles if x.name in files] if not dotfiles: raise Exception("file not found") -- cgit v1.2.3