refactor: upgrade code to Python 3.8
This commit is contained in:
parent
92ac838383
commit
0e1dfaa9ff
8 changed files with 13 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
import re
|
||||
from subprocess import PIPE, run
|
||||
from subprocess import run
|
||||
from typing import Tuple
|
||||
|
||||
LIQUIDSOAP_VERSION_RE = re.compile(r"(?:Liquidsoap )?(\d+).(\d+).(\d+)")
|
||||
|
@ -18,9 +18,8 @@ def get_liquidsoap_version() -> Tuple[int, int, int]:
|
|||
cmd = run(
|
||||
("liquidsoap", "--check", "print(liquidsoap.version) shutdown()"),
|
||||
check=True,
|
||||
stdout=PIPE,
|
||||
stderr=PIPE,
|
||||
universal_newlines=True,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
)
|
||||
|
||||
return parse_liquidsoap_version(cmd.stdout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue