##// END OF EJS Templates
Properly close file in setupbase
Matthias Bussonnier -
Show More
@@ -38,7 +38,8 b' repo_root = os.path.dirname(os.path.abspath(__file__))'
38
38
39 def execfile(fname, globs, locs=None):
39 def execfile(fname, globs, locs=None):
40 locs = locs or globs
40 locs = locs or globs
41 exec(compile(open(fname).read(), fname, "exec"), globs, locs)
41 with open(fname) as f:
42 exec(compile(f.read(), fname, "exec"), globs, locs)
42
43
43 # A little utility we'll need below, since glob() does NOT allow you to do
44 # A little utility we'll need below, since glob() does NOT allow you to do
44 # exclusion on multiple endings!
45 # exclusion on multiple endings!
General Comments 0
You need to be logged in to leave comments. Login now