From 97db9e646afd17e5e7d15b9afdf895d65510f00c Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sun, 19 Mar 2017 09:06:32 +0800 Subject: [PATCH] Fix _get_runtime_cfg on Python 3 (#4262) --- certbot-apache/certbot_apache/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/certbot-apache/certbot_apache/parser.py b/certbot-apache/certbot_apache/parser.py index 275a01e7f..67984a26c 100644 --- a/certbot-apache/certbot_apache/parser.py +++ b/certbot-apache/certbot_apache/parser.py @@ -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):