watcher: Fix breakage caused by 9bb69bb52fb9
authorMichael Hanselmann <hansmi@google.com>
Fri, 5 Aug 2011 12:17:07 +0000 (14:17 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 5 Aug 2011 13:40:15 +0000 (15:40 +0200)
The first argument to str.split is the separator, not the maximum number
of splits.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/watcher/__init__.py

index 82682d7..45e285f 100644 (file)
@@ -445,7 +445,7 @@ def _ReadInstanceStatus(filename):
       logging.exception("Unable to read '%s', ignoring", filename)
     return (None, None)
   else:
-    return (statcb.st.st_mtime, [line.split(1)
+    return (statcb.st.st_mtime, [line.split(None, 1)
                                  for line in content.splitlines()])