From daa7f8b03e685311152bf7dbf6d30d8c97e21d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Fri, 6 Dec 2024 11:32:37 +0100 Subject: [PATCH] Handle single line `paths_to_mutate` --- mutmut/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mutmut/__main__.py b/mutmut/__main__.py index 16142797..f9097da6 100644 --- a/mutmut/__main__.py +++ b/mutmut/__main__.py @@ -993,7 +993,10 @@ def s(key, default): except (NoOptionError, NoSectionError): return default if isinstance(default, list): - result = [x for x in result.split("\n") if x] + if '\n' in result: + result = [x for x in result.split("\n") if x] + else: + result = [result] elif isinstance(default, bool): result = result.lower() in ('1', 't', 'true') elif isinstance(default, int):