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