From d24815b6be78359ece524c464244a74b89124728 Mon Sep 17 00:00:00 2001 From: Morten Kristensen Date: Thu, 2 Mar 2023 23:04:52 +0100 Subject: [PATCH] Fixed error reporting that broke parsable format --- vermin/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vermin/parser.py b/vermin/parser.py index 1e44739c..69b5fbc1 100644 --- a/vermin/parser.py +++ b/vermin/parser.py @@ -96,7 +96,7 @@ def detect(self, config): min_versions = [(0, 0), (0, 0)] if config.pessimistic(): min_versions[sys.version_info.major - 2] = None - versions = version_strings(min_versions) + ":" if parsable else "" + versions = version_strings(min_versions, separator=":") + ":" if parsable else "" vvprint("{}:{}:{}:{}error: {}: {}". format(err.filename, err.lineno, err.offset, versions, err.msg, text), config) return (None, min_versions, set())