mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Make autovox work with Python 3.5
We still can't use f-strings because of Python 3.5 support.
This commit is contained in:
parent
d86cea184b
commit
98bd6b6a48
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ def get_venv(vox, dirpath):
|
||||||
if len(venvs) > 1:
|
if len(venvs) > 1:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
MultipleVenvsWarning(
|
MultipleVenvsWarning(
|
||||||
f"Found {len(venvs)} venvs for {path}; using the first"
|
"Found {numvenvs} venvs for {path}; using the first".format(
|
||||||
|
numvenvs=len(venvs), path=path
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return venvs[0]
|
return venvs[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue