Skip to content

Commit daa7f8b

Browse files
committed
Handle single line paths_to_mutate
1 parent 862755d commit daa7f8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mutmut/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,10 @@ def s(key, default):
993993
except (NoOptionError, NoSectionError):
994994
return default
995995
if isinstance(default, list):
996-
result = [x for x in result.split("\n") if x]
996+
if '\n' in result:
997+
result = [x for x in result.split("\n") if x]
998+
else:
999+
result = [result]
9971000
elif isinstance(default, bool):
9981001
result = result.lower() in ('1', 't', 'true')
9991002
elif isinstance(default, int):

0 commit comments

Comments
 (0)