Skip to content

Commit

Permalink
dump_config: Fix handling of path input
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Jan 14, 2019
1 parent b7536b0 commit c0e4001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confiddler/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def dump_config(config_data, path_or_file=None):
yaml.dump(config_data, f)
f.seek(0)
return f.getvalue()
elif isinstance(path_or_file, PathLike):
elif isinstance(path_or_file, (str, PathLike)):
with open(path_or_file, 'w') as f:
yaml.dump(config_data, f)
else:
Expand Down

0 comments on commit c0e4001

Please sign in to comment.