[PATCH 2/4] vmcore: use re.MULTILINE instead of numerical value

Richard Marko rmarko at redhat.com
Mon Sep 2 09:27:00 UTC 2013


Signed-off-by: Richard Marko <rmarko at redhat.com>
---
 src/hooks/abrt_harvest_vmcore.py.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hooks/abrt_harvest_vmcore.py.in b/src/hooks/abrt_harvest_vmcore.py.in
index f2ac4eb..3951307 100644
--- a/src/hooks/abrt_harvest_vmcore.py.in
+++ b/src/hooks/abrt_harvest_vmcore.py.in
@@ -62,7 +62,7 @@ def parse_kdump():
         kdump_conf = conf_file.read()
 
     # first uncommented path instruction
-    regexp = re.compile('^(?<!#)path (.*)$', flags=8)  # MULTILINE
+    regexp = re.compile('^(?<!#)path (.*)$', flags=re.MULTILINE)
     result = regexp.search(kdump_conf)
     if result:
         dump_path = result.group(1).strip()
@@ -71,7 +71,7 @@ def parse_kdump():
     partition = None
     # first uncommented fs_type partition instruction
     for fs_type in fs_types:
-        regexp = re.compile('^(?<!#)' + fs_type + ' (.*)$', flags=8)
+        regexp = re.compile('^(?<!#)' + fs_type + ' (.*)$', flags=re.MULTILINE)
         result = regexp.search(kdump_conf)
         if result:
             partition = result.group(1)
-- 
1.8.3.1



More information about the Crash-catcher mailing list