aboutsummaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index 6c0acda..ed3657d 100755
--- a/configure.py
+++ b/configure.py
@@ -493,7 +493,7 @@ n.newline()
n.comment('the proto descriptor is generated using protoc.')
def has_protoc():
try:
- proc = subprocess.Popen(['protoc', '--version'], stdout=subprocess.PIPE)
+ proc = subprocess.Popen(['protoc', '--version'], stdout=subprocess.PIPE, text=True)
return proc.communicate()[0].startswith("libprotoc")
except OSError:
return False
@@ -501,7 +501,7 @@ def has_protoc():
def can_generate_proto_header():
try:
tool = os.path.join(sourcedir, 'misc', 'generate_proto_header.py')
- proc = subprocess.Popen([tool, '--probe'], stdout=subprocess.PIPE)
+ proc = subprocess.Popen([tool, '--probe'], stdout=subprocess.PIPE, text=True)
return proc.communicate()[0].startswith("ok")
except OSError:
return False