Commit 224b0729 authored by Fantix King's avatar Fantix King

Replaced execfile() with exec(open().read()) in gevent/monkey.py.

parent 40544191
......@@ -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