From 8845a98d729bcb5c1f0ee4692b19d75cbf2855a8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 22 Apr 2014 15:58:50 +0000 Subject: Proof code against whitespace in repo names --- lorrycontroller/lstroves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lorrycontroller/lstroves.py b/lorrycontroller/lstroves.py index 10062ab..e69dce2 100644 --- a/lorrycontroller/lstroves.py +++ b/lorrycontroller/lstroves.py @@ -77,7 +77,7 @@ class TroveRepositoryLister(object): def parse_ls_output(self, ls_output): repo_paths = [] for line in ls_output.splitlines(): - words = line.split() + words = line.split(None, 1) if words[0].startswith('R') and len(words) == 2: repo_paths.append(words[1]) return repo_paths -- cgit v1.2.1