Mercurial > public > mercurial-scm > hg
diff hgext/inotify/linux/watcher.py @ 6287:c86207d41512
Spacing cleanup
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 16 Mar 2008 23:24:53 +0100 |
parents | 39cfcef4f463 |
children | 1536501ade62 |
line wrap: on
line diff
--- 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.