diff options
author | Mr. Krabbs <shitfi63@gmail.com> | 2020-09-16 07:29:37 -0700 |
---|---|---|
committer | Mr. Krabbs <shitfi63@gmail.com> | 2020-09-16 07:29:37 -0700 |
commit | ca567a95576a9af601451eff76dbb1002805f63e (patch) | |
tree | 43658cd6b2b566bba519e629c76871b03396acad | |
parent | 08478798f177c2f4be5ad4d717ba1c02ad45c1b0 (diff) | |
download | swig-ca567a95576a9af601451eff76dbb1002805f63e.tar.gz |
removed destructuring operator for backward compatibililty
-rwxr-xr-x | Tools/mkdist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/mkdist.py b/Tools/mkdist.py index 2d9e029f1..1a9d00be2 100755 --- a/Tools/mkdist.py +++ b/Tools/mkdist.py @@ -24,7 +24,7 @@ def run_command(*args, **kwargs): """ Runs an os command using subprocess module. """ - return subprocess.call([*args], **kwargs) + return subprocess.call(args, **kwargs) import argparse parser = argparse.ArgumentParser(description="Build a SWIG distribution tarball swig-x.y.z.tar.gz") @@ -116,7 +116,7 @@ print("Grabbing tagged release git repository using 'git archive' into " + outdi # using pipe operator without shell=True; split commands into individual ones. # git archive command command = ["git", "archive", "--prefix=" + outdir, tag, "."] -archive_ps = subprocess.Popen((*command, ), cwd=rootdir, stdout=subprocess.PIPE) +archive_ps = subprocess.Popen(command, cwd=rootdir, stdout=subprocess.PIPE) # tar -xf - tar_ps = subprocess.Popen(("tar", "-xf", "-"), stdin=archive_ps.stdout, stdout=subprocess.PIPE) archive_ps.stdout.close() # Allow archive_ps to receive a SIGPIPE if tar_ps exits. |