diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 15:15:22 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 15:18:47 +1300 |
commit | 8360f70024330eeeb5c53d29e4a05194f872b511 (patch) | |
tree | 6bbdcfe54fcce1e41660ca07c9470f42debdec5b /mitmproxy/contrib | |
parent | 4918feb7252c76c95d85cd8b2b0334a22aaae274 (diff) | |
download | mitmproxy-8360f70024330eeeb5c53d29e4a05194f872b511.tar.gz mitmproxy-8360f70024330eeeb5c53d29e4a05194f872b511.tar.bz2 mitmproxy-8360f70024330eeeb5c53d29e4a05194f872b511.zip |
First-order conversion to Python3-only
- Zap various occurrences of Python2 in docs and scripts
- Remove six from netlib, and some other places where obvious project-wide
search and replace works.
Diffstat (limited to 'mitmproxy/contrib')
-rw-r--r-- | mitmproxy/contrib/tnetstring.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/contrib/tnetstring.py b/mitmproxy/contrib/tnetstring.py index 6c498c75..f5e1d5c1 100644 --- a/mitmproxy/contrib/tnetstring.py +++ b/mitmproxy/contrib/tnetstring.py @@ -121,7 +121,7 @@ def _rdumpq(q, size, value): write(b':') write(span) return size + 2 + len(span) + ldata - elif isinstance(value, six.text_type): + elif isinstance(value, str): data = value.encode("utf8") ldata = len(data) span = str(ldata).encode() |