hgext/inotify/server.py
changeset 10282 08a0f04b56bd
parent 10264 d6512b3e9ac0
child 10494 08064db9f005
--- a/hgext/inotify/server.py	Mon Jan 25 00:05:22 2010 -0600
+++ b/hgext/inotify/server.py	Mon Jan 25 00:05:27 2010 -0600
@@ -17,7 +17,8 @@
 import sys
 import tempfile
 
-class AlreadyStartedException(Exception): pass
+class AlreadyStartedException(Exception):
+    pass
 
 def join(a, b):
     if a:
@@ -30,7 +31,7 @@
     c = path.rfind('/')
     if c == -1:
         return '', path
-    return path[:c], path[c+1:]
+    return path[:c], path[c + 1:]
 
 walk_ignored_errors = (errno.ENOENT, errno.ENAMETOOLONG)
 
@@ -332,8 +333,8 @@
             self.sock.bind(self.sockpath)
         except socket.error, err:
             if err[0] == errno.EADDRINUSE:
-                raise AlreadyStartedException( _('cannot start: socket is '
-                                                 'already bound'))
+                raise AlreadyStartedException(_('cannot start: socket is '
+                                                'already bound'))
             if err[0] == "AF_UNIX path too long":
                 if os.path.islink(self.sockpath) and \
                         not os.path.exists(self.sockpath):