summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jay Sweeney <writetojay@gmail.com> 2013-11-09 14:26:11 +1000
committerGravatar Jon Bernard <jbernard@tuxion.com> 2013-11-09 17:05:57 -0500
commit9b33cb0ee6b5a70e17f999d36699ca6dc901bcaf (patch)
tree3ff472519e63275bbea48ebb030555dcac341fef
parent24b2e2f8e1d8df944f6387b2c9bef3855065abc4 (diff)
downloaddotfiles-9b33cb0ee6b5a70e17f999d36699ca6dc901bcaf.tar.gz
dotfiles-9b33cb0ee6b5a70e17f999d36699ca6dc901bcaf.tar.bz2
dotfiles-9b33cb0ee6b5a70e17f999d36699ca6dc901bcaf.zip
A set makes more sense (and is faster) than list here
-rw-r--r--dotfiles/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py
index e3ac564..35436a7 100644
--- a/dotfiles/core.py
+++ b/dotfiles/core.py
@@ -191,7 +191,7 @@ class Dotfiles(object):
if not files:
dotfiles = self.dotfiles
else:
- files = list(map(lambda x: os.path.join(self.homedir, x), files))
+ files = set(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")