Use Python 3.7 subprocess.run() arguments

This commit is contained in:
Chris Mayo 2021-12-30 19:27:04 +00:00
parent 819dacb9bb
commit 243d91cc4c

View file

@ -93,7 +93,7 @@ def get_release_date(for_sdist=False):
try:
# need git >= 2.25.0 for %cs
cp = subprocess.run(["git", "log", "-n 1", "HEAD", "--format=%cI"],
stdout=subprocess.PIPE, universal_newlines=True)
capture_output=True, text=True)
except FileNotFoundError:
pass
if cp and cp.stdout: