diff options
author | Remco Wendt <remco@maykinmedia.nl> | 2011-10-23 23:05:56 +0200 |
---|---|---|
committer | Remco Wendt <remco@maykinmedia.nl> | 2011-10-23 23:05:56 +0200 |
commit | fe9996bf08c93d9b22fbed3b70c2fe19e670a8fd (patch) | |
tree | 193b26fdb062fd6df872089a71c8cdf9a635f5e4 | |
parent | 3afcd23254661162f6ae12ff4ef82ef26d533065 (diff) | |
download | dotfiles-fe9996bf08c93d9b22fbed3b70c2fe19e670a8fd.tar.gz dotfiles-fe9996bf08c93d9b22fbed3b70c2fe19e670a8fd.tar.bz2 dotfiles-fe9996bf08c93d9b22fbed3b70c2fe19e670a8fd.zip |
PEP8ified some code
-rw-r--r-- | dotfiles/core.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py index f3241c9..c679039 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -78,7 +78,6 @@ class Dotfiles(object): self._load() - def _load(self): """Load each dotfile in the repository.""" @@ -91,14 +90,12 @@ class Dotfiles(object): for dotfile in self.externals.keys(): self.dotfiles.append(Dotfile(dotfile, self.externals[dotfile], self.home)) - def _fqpn(self, dotfile): """Return the fully qualified path to a dotfile.""" return os.path.join(self.repo, self.prefix + os.path.basename(dotfile).strip('.')) - def list(self, verbose=True): """List the contents of this repository.""" @@ -106,13 +103,11 @@ class Dotfiles(object): if dotfile.status or verbose: print dotfile - def check(self): """List only unmanaged and/or missing dotfiles.""" self.list(verbose=False) - def sync(self, force=False): """Synchronize this repository, creating and updating the necessary @@ -121,19 +116,16 @@ class Dotfiles(object): for dotfile in self.dotfiles: dotfile.sync(force) - def add(self, files): """Add dotfile(s) to the repository.""" self._perform_action('add', files) - def remove(self, files): """Remove dotfile(s) from the repository.""" self._perform_action('remove', files) - def _perform_action(self, action, files): for file in files: if os.path.basename(file).startswith('.'): @@ -141,7 +133,6 @@ class Dotfiles(object): else: print "Skipping \"%s\", not a dotfile" % file - def move(self, target): """Move the repository to another location.""" |