changeset 14179 | 64481eee6215 |
parent 11567 | 34cc8b84407f |
child 16354 | 9f98fe05ecf1 |
--- a/hgext/inotify/linuxserver.py Tue May 03 22:11:56 2011 +0200 +++ b/hgext/inotify/linuxserver.py Tue May 03 21:53:13 2011 -0500 @@ -44,7 +44,7 @@ def _explain_watch_limit(ui, dirstate, rootabs): path = '/proc/sys/fs/inotify/max_user_watches' try: - limit = int(file(path).read()) + limit = int(util.readfile(path)) except IOError, err: if err.errno != errno.ENOENT: raise