Richard Marko
2013-09-03 15:02:24 UTC
Signed-off-by: Richard Marko <rmarko-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
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)
---
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
1.8.3.1