summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-25 18:19:20 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-25 18:19:20 +0000
commit49d4a51b62b305d282061ff1f2cb80ad3ede12d2 (patch)
tree1533b838d209c14ddd760e9b8c2dde88b828dfb9
parentc0795e9397a43d0be12840e86943a75be9c69105 (diff)
downloadlorry-controller-49d4a51b62b305d282061ff1f2cb80ad3ede12d2.tar.gz
Fix re.match call
-rw-r--r--lorrycontroller/givemejob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/givemejob.py b/lorrycontroller/givemejob.py
index d5e8f6d..3690b49 100644
--- a/lorrycontroller/givemejob.py
+++ b/lorrycontroller/givemejob.py
@@ -119,7 +119,7 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
result = collections.defaultdict(str)
for line in stdout.splitlines():
- m = re.match(r'^([^:])+:\s*(.*)$')
+ m = re.match(r'^([^:])+:\s*(.*)$', line)
if m:
result[m.group(0)] = m.group(1).strip()