aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-python-mutable-default-parameters.py
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-01-17 21:46:35 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-01-18 13:00:34 +0100
commitfa8fe5b69669b4d86e0d0970d68502abee8785f3 (patch)
tree177964f91bff38cb4b517fec698274febfd5492d /test/lint/lint-python-mutable-default-parameters.py
parentfa2a23548aa9656e397189d8da844657709fb831 (diff)
downloadbitcoin-fa8fe5b69669b4d86e0d0970d68502abee8785f3.tar.xz
scripted-diff: Use new python 3.7 keywords
-BEGIN VERIFY SCRIPT- sed -i 's/universal_newlines/text/g' $(git grep -l universal_newlines) -END VERIFY SCRIPT-
Diffstat (limited to 'test/lint/lint-python-mutable-default-parameters.py')
-rwxr-xr-xtest/lint/lint-python-mutable-default-parameters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lint/lint-python-mutable-default-parameters.py b/test/lint/lint-python-mutable-default-parameters.py
index 3dfc5940f7..820595ea34 100755
--- a/test/lint/lint-python-mutable-default-parameters.py
+++ b/test/lint/lint-python-mutable-default-parameters.py
@@ -21,7 +21,7 @@ def main():
"--",
"*.py",
]
- output = subprocess.run(command, stdout=subprocess.PIPE, universal_newlines=True)
+ output = subprocess.run(command, stdout=subprocess.PIPE, text=True)
if len(output.stdout) > 0:
error_msg = (
"A mutable list or dict seems to be used as default parameter value:\n\n"