Skip to content

Commit

Permalink
fix missed case of getdefaultencoding() -> DEFAULT_ENCODING
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrandonp committed May 5, 2012
1 parent 42a53e1 commit 13bd783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/zmq/iostream.py
Expand Up @@ -69,7 +69,7 @@ def write(self, string):
else:
# Make sure that we're handling unicode
if not isinstance(string, unicode):
enc = encoding.getdefaultencoding()
enc = encoding.DEFAULT_ENCODING
string = string.decode(enc, 'replace')

self._buffer.write(string)
Expand Down

0 comments on commit 13bd783

Please sign in to comment.