Commit 6e67978d authored by Vinay Sajip's avatar Vinay Sajip

Fixed execfile in compat.py.

--HG--
branch : distribute
extra : rebase_source : cf31870fee8b718e14e209d957905c8d7573beba
parent 5861e044
......@@ -69,5 +69,10 @@ else:
from urllib.parse import urlparse, urlunparse, unquote, splituser, urljoin
xrange = range
def execfile(fn, globs, locs):
def execfile(fn, globs=None, locs=None):
if globs is None:
globs = globals()
if locs is None:
locs = globs
exec_(compile(open(fn).read(), fn, 'exec'), globs, locs)
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