From: yanne <re...@bu...> - 2008-09-23 10:55:09
|
New submission from yanne <jt...@ri...>: $ echo -en "print 'Hello'\n " > test.py $ /opt/jython2.5a3/jython test.py Traceback (most recent call last): (no code object) at line 0 File "test.py", line 2 ^ SyntaxError: line 2:2 mismatched input '' expecting EOF (test.py, line 2) $ echo -en "def hello():\n print 'Hello'\n " > test.py $ /opt/jython2.5a3/jython test.py Traceback (most recent call last): (no code object) at line 0 File "test.py", line 3 ^ IndentationError: unindent does not match any outer indentation level (test.py, line 3) $ echo -en "class Foo:\n def hello(self):\n print 'Hello'\n " > test.py $ /opt/jython2.5a3/jython test.py Traceback (most recent call last): (no code object) at line 0 File "test.py", line 4 ^ SyntaxError: line 4:2 mismatched input '' expecting DEDENT (test.py, line 4) ---------- components: Core messages: 3612 nosy: yanne severity: normal status: open title: Parsing a module fails if it ends with whitespace but no newline versions: 2.5alpha3 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1136> _______________________________________ |