Skip to content

Commit

Permalink
Merge pull request #35 from vincentbernat/fix/php-unicode
Browse files Browse the repository at this point in the history
conf: don't use keyword `errors` for `str.encode`
  • Loading branch information
Olivier Poitrey committed Oct 4, 2013
2 parents 61ceb59 + 728eba6 commit 8c08ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zkfarmer/conf.py
Expand Up @@ -144,7 +144,7 @@ def _dump(self, value, lvl=0):
def write(self, obj):
with self.open(write=True) as fd:
php = u'<?php return %s;' % self._dump(obj)
fd.write(php.encode("utf-8", errors="ignore"))
fd.write(php.encode("utf-8", "ignore"))


class ConfDir(ConfFile):
Expand Down

0 comments on commit 8c08ccf

Please sign in to comment.