Fix _get_runtime_cfg on Python 3 (#4262)

This commit is contained in:
Yen Chi Hsuan 2017-03-19 09:06:32 +08:00 committed by Brad Warren
parent d54d3eba78
commit 97db9e646a

View file

@ -136,7 +136,8 @@ class ApacheParser(object):
proc = subprocess.Popen(
constants.os_constant("define_cmd"),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stderr=subprocess.PIPE,
universal_newlines=True)
stdout, stderr = proc.communicate()
except (OSError, ValueError):