From 6f9e71bb737bce6442cb57948acbba32cdab950a Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 5 Aug 2011 14:17:07 +0200
Subject: [PATCH] watcher: Fix breakage caused by 9bb69bb52fb9

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/watcher/__init__.py b/lib/watcher/__init__.py
index 82682d72f..45e285f48 100644
--- a/lib/watcher/__init__.py
+++ b/lib/watcher/__init__.py
@@ -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()])
 
 
-- 
GitLab