From 896e0fb99d62be8f19dff79e41c9a2bd7ea723b1 Mon Sep 17 00:00:00 2001 From: Jesús García Crespo Date: Tue, 26 Feb 2013 11:44:25 -0800 Subject: Remove unneeded whitespaces and fix typo --- dotfiles/cli.py | 2 +- dotfiles/core.py | 2 +- test_dotfiles.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/cli.py b/dotfiles/cli.py index 940495e..3726e0d 100644 --- a/dotfiles/cli.py +++ b/dotfiles/cli.py @@ -212,7 +212,7 @@ def main(): (cli_opts, args) = parse_args() - settings['homedir'] = realpath_expanduser(cli_opts.homedir or + settings['homedir'] = realpath_expanduser(cli_opts.homedir or defaults['homedir']) settings['config_file'] = realpath_expanduser(cli_opts.config_file or defaults['config_file']) diff --git a/dotfiles/core.py b/dotfiles/core.py index 1dfcea7..f2b492b 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -152,7 +152,7 @@ class Dotfiles(object): self._load_recursive(pkg_path) else: self.dotfiles.append(Dotfile(dotfile[len(self.prefix):], - os.path.join(src_dir, dotfile), dst_dir, + os.path.join(src_dir, dotfile), dst_dir, add_dot=not bool(sub_dir), dry_run=self.dry_run)) # Externals are top-level only diff --git a/test_dotfiles.py b/test_dotfiles.py index 88ffe67..cce8009 100755 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -180,7 +180,7 @@ class DotfilesTestCase(unittest.TestCase): self.assertPathEqual( os.path.join(self.repository, original), os.path.join(self.homedir, symlink)) - + def test_packages(self): """ Test packages. @@ -197,7 +197,7 @@ class DotfilesTestCase(unittest.TestCase): os.makedirs(dirname) touch(path) - # Create Dotiles object + # Create Dotfiles object dotfiles = core.Dotfiles( homedir=self.homedir, repository=self.repository, prefix='', ignore=[], externals={}, packages=['package'], -- cgit v1.2.3