diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-01 12:32:03 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-01 12:32:03 +1200 |
| commit | 7439e244a6ac0bc5ef4ffcbfbf312b91373de0ef (patch) | |
| tree | a4131e57c04eef26db39c57e79a69899f6e06069 /libmproxy/tnetstring.py | |
| parent | 50df036db5bd38a2639955674726a70cc643f32d (diff) | |
| parent | c28cc6fe96becc3dae860f0abca4b00149372743 (diff) | |
| download | mitmproxy-7439e244a6ac0bc5ef4ffcbfbf312b91373de0ef.tar.gz mitmproxy-7439e244a6ac0bc5ef4ffcbfbf312b91373de0ef.tar.bz2 mitmproxy-7439e244a6ac0bc5ef4ffcbfbf312b91373de0ef.zip | |
Merge branch 'master' of ssh.github.com:mitmproxy/mitmproxy
Diffstat (limited to 'libmproxy/tnetstring.py')
| -rw-r--r-- | libmproxy/tnetstring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/tnetstring.py b/libmproxy/tnetstring.py index bed8405f..c5c185c6 100644 --- a/libmproxy/tnetstring.py +++ b/libmproxy/tnetstring.py @@ -60,10 +60,10 @@ By default tnetstrings work only with byte strings, not unicode. If you want unicode strings then pass an optional encoding to the various functions, like so:: - >>> print repr(tnetstring.loads("2:\\xce\\xb1,")) + >>> print(repr(tnetstring.loads("2:\\xce\\xb1,"))) '\\xce\\xb1' >>> - >>> print repr(tnetstring.loads("2:\\xce\\xb1,","utf8")) + >>> print(repr(tnetstring.loads("2:\\xce\\xb1,","utf8"))) u'\u03b1' """ |
