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