diff options
author | strohu <strohu@users.noreply.github.com> | 2016-07-12 15:47:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-12 15:47:01 +0100 |
commit | 6a9407d7cc4ac5555180a2ee331ff95eef131902 (patch) | |
tree | 7d6a0b48e9c7a3dace41e23c507e7055f5ca29a3 /examples/proxapp.py | |
parent | 4fd71d7bfdb3d0568262be807eed1268441df9e9 (diff) | |
download | mitmproxy-6a9407d7cc4ac5555180a2ee331ff95eef131902.tar.gz mitmproxy-6a9407d7cc4ac5555180a2ee331ff95eef131902.tar.bz2 mitmproxy-6a9407d7cc4ac5555180a2ee331ff95eef131902.zip |
Make sudo pfctl error check Python 3 compatible
In Python 3, subprocess.check_output() returns a sequence of bytes. This change ensures that it will be converted to a string, so the substring test for the sudo error message does not raise a TypeError. This fixes the code in Python 3 while remaining compatible with Python 2.
Diffstat (limited to 'examples/proxapp.py')
0 files changed, 0 insertions, 0 deletions