diff options
author | Jesús García Crespo <jesus@sevein.com> | 2013-02-26 11:44:25 -0800 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2013-11-07 09:38:44 -0500 |
commit | 896e0fb99d62be8f19dff79e41c9a2bd7ea723b1 (patch) | |
tree | aef3e8f7c9cc31928726133c94b5c91cb1cbb71d | |
parent | c97f331ea2ebe7ae46ea04f81cfc01eba7ef7a75 (diff) | |
download | dotfiles-896e0fb99d62be8f19dff79e41c9a2bd7ea723b1.tar.gz dotfiles-896e0fb99d62be8f19dff79e41c9a2bd7ea723b1.tar.bz2 dotfiles-896e0fb99d62be8f19dff79e41c9a2bd7ea723b1.zip |
Remove unneeded whitespaces and fix typo
-rw-r--r-- | dotfiles/cli.py | 2 | ||||
-rw-r--r-- | dotfiles/core.py | 2 | ||||
-rwxr-xr-x | 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'], |