diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 20:09:53 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 20:09:53 +0200 |
commit | 748cbaa07469d4004b5631774b306aad646798f7 (patch) | |
tree | ef362d5687522d6342d29804170c266c14ce8676 | |
parent | d76e5ad1ee5f0fba65b1bf8b9fd70a454b079b7f (diff) | |
download | mitmproxy-748cbaa07469d4004b5631774b306aad646798f7.tar.gz mitmproxy-748cbaa07469d4004b5631774b306aad646798f7.tar.bz2 mitmproxy-748cbaa07469d4004b5631774b306aad646798f7.zip |
cleanup
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | mitmproxy/script/script.py | 2 | ||||
-rw-r--r-- | setup.cfg | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -9,6 +9,7 @@ MANIFEST .coverage .idea .cache/ +.tox/ build/ # UI diff --git a/mitmproxy/script/script.py b/mitmproxy/script/script.py index 4ec9af97..9bf05f27 100644 --- a/mitmproxy/script/script.py +++ b/mitmproxy/script/script.py @@ -77,7 +77,7 @@ class Script(object): try: with open(self.filename) as f: code = compile(f.read(), self.filename, 'exec') - exec (code, self.ns, self.ns) + exec(code, self.ns, self.ns) except Exception: six.reraise( ScriptException, @@ -3,6 +3,7 @@ max-line-length = 140 max-complexity = 25 ignore = E251,C901 exclude = mitmproxy/contrib/*,test/mitmproxy/data/* +builtins = file,open,basestring,xrange,unicode,long,cmp [pytest] testpaths = test |