diff --git a/utils/check-style.py b/utils/check-style.py index f470c849f..2492579a8 100755 --- a/utils/check-style.py +++ b/utils/check-style.py @@ -448,7 +448,7 @@ def indent(source, debug, level): stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, - text = True) + universal_newlines = True) (out, err) = uncrust.communicate('') if debug: sys.stderr.write(out) @@ -489,7 +489,7 @@ def indent(source, debug, level): stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, - text = True) + universal_newlines = True) (out, err) = patch.communicate('') if debug: sys.stderr.write(out)