diff --git a/llvm/utils/extract-section.py b/llvm/utils/extract-section.py --- a/llvm/utils/extract-section.py +++ b/llvm/utils/extract-section.py @@ -33,8 +33,7 @@ import subprocess cmd = [readobj_path, '-elf-output-style=GNU', '--hex-dump={}'.format(section_name), input_file] - proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - universal_newlines=True) + proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) if input_file == '-': # From stdin