Skip to content

Commit

Permalink
Support Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
vfaronov committed Oct 17, 2016
1 parent 126225b commit 1ee5940
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
language: python

python: "2.7"
python:
- "2.7"
- "3.4"
- "3.5"

env:
- REQUIRES=minimum
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Unreleased
~~~~~~~~~~
This release is compatible with mitmproxy 0.18+, and **only** 0.18+
(because mitmproxy 0.18 has a new, backward-incompatible API).
Note that mitmproxy (and thus mitmproxy-HTTPolice) now supports Python 3.


0.3.0 - 2016-08-14
Expand Down
4 changes: 2 additions & 2 deletions test_real_mitmdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def __init__(self):
def start(self):
fd, self.report_path = tempfile.mkstemp()
os.close(fd)
script_path = subprocess.check_output(['python', '-m',
'mitmproxy_httpolice']).strip()
script_path = subprocess.check_output(
['python', '-m', 'mitmproxy_httpolice']).decode().strip()
self.process = subprocess.Popen([
'mitmdump', '-p', str(self.port), '-s',
"'%s' '%s'" % (script_path, self.report_path)
Expand Down

0 comments on commit 1ee5940

Please sign in to comment.