Commit e997754e authored by Denis Bilenko's avatar Denis Bilenko

Merge pull request #363 from fantix/execfile

Replaced execfile() with exec(open().read()) in gevent/monkey.py.
parents 40544191 224b0729
......@@ -239,6 +239,7 @@ MONKEY OPTIONS: --verbose %s""" % ', '.join('--[no-]%s' % m for m in modules)
sys.argv = argv
__package__ = None
globals()['__file__'] = sys.argv[0] # issue #302
execfile(sys.argv[0])
with open(sys.argv[0]) as f:
exec(f.read())
else:
print(script_help)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment