Skip to content

Commit

Permalink
fix a bug that configobj process not str but bytes internally when ou…
Browse files Browse the repository at this point in the history
…tput to files
  • Loading branch information
ssato committed Jun 2, 2015
1 parent 9f6513f commit aa123d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyconfig/backend/configobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ def dump_impl(cls, data, config_path, **kwargs):
conf = configobj.ConfigObj(**kwargs)
conf.update(data)

conf.write(open(config_path, 'w'))
conf.write(open(config_path, 'wb'))

# vim:sw=4:ts=4:et:

0 comments on commit aa123d8

Please sign in to comment.