Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue with debugging apps with non-ascii data
  • Loading branch information
Marcin Lubimow committed Jul 5, 2016
1 parent 255f318 commit 61a728b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pudb/remote.py
Expand Up @@ -69,7 +69,9 @@ def __init__(self, host=PUDB_RDB_HOST, port=PUDB_RDB_PORT,
# makefile ignores encoding if there's no buffering.
raw_sock_file = self._client.makefile("rwb", 0)
import codecs
sock_file = codecs.StreamReaderWriter(raw_sock_file,
sock_file = codecs.StreamRecoder(raw_sock_file,
codecs.getencoder("utf-8"),
codecs.getdecoder("utf-8"),
codecs.getreader("utf-8"),
codecs.getwriter("utf-8"))

Expand Down

0 comments on commit 61a728b

Please sign in to comment.