Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bin: ghar: remove trailing white space

  • Loading branch information...
commit e03bc5913ccbef3b7a40a401bf954ad00e85663d 1 parent 2e35f5d
Brandon Philips authored June 09, 2012

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. 16  bin/ghar
16  bin/ghar
@@ -5,12 +5,12 @@
5 5
 # This program is free software; you can redistribute it and/or modify
6 6
 # it under the terms of the GNU General Public License version 2 as
7 7
 # published by the Free Software Foundation.
8  
-# 
  8
+#
9 9
 # This program is distributed in the hope that it will be useful, but
10 10
 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 11
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 12
 # General Public License for more details.
13  
-# 
  13
+#
14 14
 # You should have received a copy of the GNU General Public License
15 15
 # along with this program; if not, write to the Free Software
16 16
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
@@ -46,7 +46,7 @@ class NoGitException(Exception):
46 46
 class Link:
47 47
     def install(self):
48 48
         status = self._target_check()
49  
-        
  49
+
50 50
         if self.installed:
51 51
             return (True, "ok")
52 52
         if self.target_clear:
@@ -57,7 +57,7 @@ class Link:
57 57
 
58 58
     def uninstall(self):
59 59
         status = self._target_check()
60  
-        
  60
+
61 61
         if self.installed:
62 62
             os.unlink(self.target)
63 63
             return (True, "ok")
@@ -96,7 +96,7 @@ class Link:
96 96
 
97 97
     def __str__(self):
98 98
         return self.target
99  
-        
  99
+
100 100
     def __init__(self, path, collection = True):
101 101
         self.path = path
102 102
         self.basename = os.path.basename(path)
@@ -112,7 +112,7 @@ class Link:
112 112
 
113 113
 
114 114
 class Repo:
115  
-    """A ghar repo is a git repo either containing dotfiles or 
  115
+    """A ghar repo is a git repo either containing dotfiles or
116 116
        will itself be used as a dotfile directory.
117 117
     """
118 118
     # Ghar repos can either be a "collection" or a directly linked folder
@@ -149,7 +149,7 @@ class Repo:
149 149
                                 stdout=subprocess.PIPE,
150 150
                                 stderr=subprocess.STDOUT)
151 151
         ret = pipe.communicate()[0]
152  
-        if pipe.returncode != 0: 
  152
+        if pipe.returncode != 0:
153 153
             return (True, ret)
154 154
         return (False, ret)
155 155
 
@@ -179,7 +179,7 @@ class Repo:
179 179
             self.links.append(Link(path, collection = False))
180 180
 
181 181
 #
182  
-# ghar sub-commands 
  182
+# ghar sub-commands
183 183
 #
184 184
 
185 185
 argp_list = argp_sub.add_parser('list', help="list all repos")

0 notes on commit e03bc59

Please sign in to comment.
Something went wrong with that request. Please try again.