diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-18 22:44:54 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-18 22:44:54 (GMT) |
commit | e30b3fa17a7f89fac3ef5e2b6546dad95204032e (patch) | |
tree | 3162a79a0a68f6acb5a558ca682c0b1ed3a500b5 | |
parent | 001a3952c973c645d961b4d688fc79d556fd580d (diff) | |
download | cpython-e30b3fa17a7f89fac3ef5e2b6546dad95204032e.zip cpython-e30b3fa17a7f89fac3ef5e2b6546dad95204032e.tar.gz cpython-e30b3fa17a7f89fac3ef5e2b6546dad95204032e.tar.bz2 |
these lines can now be dispensed with
-rw-r--r-- | Lib/py_compile.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 43af3c0..24b5837 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -109,8 +109,6 @@ def compile(file, cfile=None, dfile=None, doraise=False): except AttributeError: timestamp = long(os.stat(file).st_mtime) codestring = f.read() - if codestring and codestring[-1] != '\n': - codestring = codestring + '\n' try: codeobject = __builtin__.compile(codestring, dfile or file,'exec') except Exception,err: |