diff options
author | Jay Sweeney <writetojay@gmail.com> | 2013-11-09 14:06:43 +1000 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2013-11-09 17:04:45 -0500 |
commit | 24b2e2f8e1d8df944f6387b2c9bef3855065abc4 (patch) | |
tree | 306ad730927c5e5c0d218e18ff707e6ce5af94e6 | |
parent | 16eec288035b56874b77c542cb7cbaf80b641a89 (diff) | |
download | dotfiles-24b2e2f8e1d8df944f6387b2c9bef3855065abc4.tar.gz dotfiles-24b2e2f8e1d8df944f6387b2c9bef3855065abc4.tar.bz2 dotfiles-24b2e2f8e1d8df944f6387b2c9bef3855065abc4.zip |
Python 3.x compat: map is lazy in 3.x
Closes: #21
-rw-r--r-- | dotfiles/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |