summaryrefslogtreecommitdiff
path: root/scripts/link_pyqt.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/link_pyqt.py')
-rw-r--r--scripts/link_pyqt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py
index 158cc145d..0ec7f2556 100644
--- a/scripts/link_pyqt.py
+++ b/scripts/link_pyqt.py
@@ -44,13 +44,13 @@ def run_py(executable, *code):
f.write('\n'.join(code))
cmd = [executable, filename]
try:
- ret = subprocess.run(cmd, universal_newlines=True, check=True,
+ ret = subprocess.run(cmd, text=True, check=True,
stdout=subprocess.PIPE).stdout
finally:
os.remove(filename)
else:
cmd = [executable, '-c', '\n'.join(code)]
- ret = subprocess.run(cmd, universal_newlines=True, check=True,
+ ret = subprocess.run(cmd, text=True, check=True,
stdout=subprocess.PIPE).stdout
return ret.rstrip()