##// END OF EJS Templates
Switching to builtin open instead of file
Jörgen Stenarson -
Show More
@@ -155,7 +155,7 b' else:'
155 155 if sys.platform == 'win32':
156 156 def execfile(fname, glob, loc=None):
157 157 loc = loc if (loc is not None) else glob
158 scripttext = file(fname).read()
158 scripttext = __builtin__.open(fname).read()
159 159 #compile converts unicode filename to str assuming
160 160 #ascii. Let's do the conversion before calling compile
161 161 if isinstance(fname, unicode):
General Comments 0
You need to be logged in to leave comments. Login now