Browse Source

sphinx_multiversion/git: Restore Python 3.6 compatibility

Jan Holthuis 4 years ago
parent
commit
c19492b97a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      sphinx_multiversion/git.py

+ 3 - 1
sphinx_multiversion/git.py

@@ -86,7 +86,9 @@ def file_exists(gitroot, refname, filename):
         "-e",
         "{}:{}".format(refname, filename),
     )
-    proc = subprocess.run(cmd, cwd=gitroot, capture_output=True)
+    proc = subprocess.run(
+        cmd, cwd=gitroot, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
+    )
     return proc.returncode == 0