Spacing cleanup
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 16 Mar 2008 23:24:53 +0100
changeset 6287 c86207d41512
parent 6286 90a4329a6b4a
child 6288 d6e5e6f7b2d8
Spacing cleanup
hgext/inotify/linux/watcher.py
hgext/inotify/server.py
mercurial/hgweb/hgwebdir_mod.py
--- a/hgext/inotify/linux/watcher.py	Sun Mar 16 06:10:47 2008 -0300
+++ b/hgext/inotify/linux/watcher.py	Sun Mar 16 23:24:53 2008 +0100
@@ -69,7 +69,7 @@
         self.mask = raw.mask
         self.cookie = raw.cookie
         self.name = raw.name
-    
+
     def __repr__(self):
         r = repr(self.raw)
         return 'Event(path=' + repr(self.path) + ', ' + r[r.find('(')+1:]
@@ -155,7 +155,7 @@
 
     def path(self, path):
         '''Return a (watch descriptor, event mask) pair for the given path.
-        
+
         If the path is not being watched, return None.'''
 
         return self._paths.get(path)
@@ -167,7 +167,7 @@
         this watcher, return None.'''
 
         return self._wds.get(wd)
-        
+
     def read(self, bufsize=None):
         '''Read a list of queued inotify events.
 
--- a/hgext/inotify/server.py	Sun Mar 16 06:10:47 2008 -0300
+++ b/hgext/inotify/server.py	Sun Mar 16 23:24:53 2008 +0100
@@ -316,7 +316,7 @@
             root, fn = self.split(wfn)
             del self.dir(self.statustrees[key], root)[fn]
             del self.dir(self.tree, root)[fn]
-        
+
     def scan(self, topdir=''):
         self.handle_timeout()
         ds = self.repo.dirstate._map.copy()
@@ -359,7 +359,7 @@
 
     def walk(self, states, tree, prefix=''):
         # This is the "inner loop" when talking to the client.
-        
+
         for name, val in tree.iteritems():
             path = join(prefix, name)
             try:
@@ -384,7 +384,7 @@
             self.repo.dirstate.ignorefunc = None
             self.ui.note('rescanning due to .hgignore change\n')
             self.scan()
-        
+
     def getstat(self, wpath):
         try:
             return self.statcache[wpath]
@@ -394,7 +394,7 @@
             except OSError, err:
                 if err.errno != errno.ENOENT:
                     raise
-        
+
     def stat(self, wpath):
         try:
             st = os.lstat(join(self.wprefix, wpath))
@@ -404,7 +404,7 @@
         except OSError, err:
             self.statcache.pop(wpath, None)
             raise
-            
+
     def created(self, wpath):
         if wpath == '.hgignore':
             self.update_hgignore()
@@ -435,7 +435,7 @@
             return
 
         self.updatestatus(wpath, None)
-        
+
     def schedule_work(self, wpath, evt):
         self.eventq.setdefault(wpath, [])
         prev = self.eventq[wpath]
@@ -454,7 +454,7 @@
             self.modified(wpath)
         elif evt == 'd':
             self.deleted(wpath)
-            
+
     def process_create(self, wpath, evt):
         if self.ui.debugflag:
             self.ui.note(_('%s event: created %s\n') %
@@ -583,7 +583,7 @@
             return
 
         names = cs.read().split('\0')
-        
+
         states = names.pop()
 
         self.ui.note(_('answering query for %r\n') % states)
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Mar 16 06:10:47 2008 -0300
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Mar 16 23:24:53 2008 +0100
@@ -55,7 +55,7 @@
                 self.repos.extend(cleannames(cp.items('paths')))
             if cp.has_section('collections'):
                 for prefix, root in cp.items('collections'):
-                    for path in util.walkrepos(root, followsym = True):
+                    for path in util.walkrepos(root, followsym=True):
                         repo = os.path.normpath(path)
                         name = repo
                         if name.startswith(prefix):