From 98bd6b6a48b12ba87c38043f42b624dbd331753a Mon Sep 17 00:00:00 2001 From: David Strobach Date: Wed, 8 Apr 2020 20:13:12 +0200 Subject: [PATCH] Make autovox work with Python 3.5 We still can't use f-strings because of Python 3.5 support. --- xontrib/autovox.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xontrib/autovox.py b/xontrib/autovox.py index b3e99ab5f..816d1c4bc 100644 --- a/xontrib/autovox.py +++ b/xontrib/autovox.py @@ -53,7 +53,9 @@ def get_venv(vox, dirpath): if len(venvs) > 1: warnings.warn( 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]