Skip to content

Commit

Permalink
Handle single line paths_to_mutate
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Dec 6, 2024
1 parent 862755d commit daa7f8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit daa7f8b

Please sign in to comment.