Show More
@@ -155,7 +155,10 b' else:' | |||
|
155 | 155 | if sys.platform == 'win32': |
|
156 | 156 | def execfile(fname, glob=None, loc=None): |
|
157 | 157 | loc = loc if (loc is not None) else glob |
|
158 | scripttext = __builtin__.open(fname).read() | |
|
158 | # The rstrip() is necessary b/c trailing whitespace in files will | |
|
159 | # cause an IndentationError in Python 2.6 (this was fixed in 2.7, | |
|
160 | # but we still support 2.6). See issue 1027. | |
|
161 | scripttext = __builtin__.open(fname).read().rstrip() | |
|
159 | 162 | # compile converts unicode filename to str assuming |
|
160 | 163 | # ascii. Let's do the conversion before calling compile |
|
161 | 164 | if isinstance(fname, unicode): |
General Comments 0
You need to be logged in to leave comments.
Login now