This commit is contained in:
Thomas Kriechbaumer 2016-05-29 20:09:53 +02:00
parent d76e5ad1ee
commit 748cbaa074
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ MANIFEST
.coverage
.idea
.cache/
.tox/
build/
# UI

View File

@ -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,

View File

@ -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