mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Switch from subprocess.run to subprocess.check_call
Restores Python 2 compatibility in conf.py
This commit is contained in:
@@ -53,9 +53,9 @@ author = "fish-shell developers"
|
|||||||
|
|
||||||
# Parsing FISH-BUILD-VERSION-FILE is possible but hard to ensure that it is in the right place
|
# Parsing FISH-BUILD-VERSION-FILE is possible but hard to ensure that it is in the right place
|
||||||
# fish_indent is guaranteed to be on PATH for the Pygments highlighter anyway
|
# fish_indent is guaranteed to be on PATH for the Pygments highlighter anyway
|
||||||
ret = subprocess.run(
|
ret = subprocess.check_output(
|
||||||
("fish_indent", "--version"), stdout=subprocess.PIPE, stderr=subprocess.PIPE
|
("fish_indent", "--version"), stderr=subprocess.STDOUT
|
||||||
).stderr.decode("utf-8")
|
).decode("utf-8")
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = ret.strip().split(" ")[-1]
|
release = ret.strip().split(" ")[-1]
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
|
|||||||
Reference in New Issue
Block a user