Mercurial > hg
diff hgext/inotify/server.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | 08064db9f005 |
line wrap: on
line diff
--- 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):