[issue7089] shlex behaves unexpected if newlines are not whitespace

2021-06-14 Thread Irit Katriel
Irit Katriel added the comment: I've reproduced on 3.11. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7089] shlex behaves unexpected if newlines are not whitespace

2021-06-14 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___

[issue7089] shlex behaves unexpected if newlines are not whitespace

2011-07-31 Thread Ann Elliott
Ann Elliott elliott@osu.edu added the comment: This error still occurs in version 3.3.0a0. -- nosy: +elliotta versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7089 ___

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-12-31 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ferringb priority: - normal stage: - test needed versions: -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7089

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-12-31 Thread Jan David Mol
Jan David Mol jjd...@gmail.com added the comment: As there seems to be some interest, I've continued working on patching this issue. Attached is an improved version of the patch, including additions to test_shlex.py. Improved in the sense that newlines after a comment are not considered to be

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-12-30 Thread Kan-Ru Chen
Changes by Kan-Ru Chen ka...@kanru.info: -- nosy: +kanru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7089 ___ ___ Python-bugs-list mailing list

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-10-09 Thread Jan David Mol
New submission from Jan David Mol jjd...@gmail.com: The shlex module does not function as expected in the presence of comments when newlines are not whitespace. An example (attached): from shlex import shlex lexer = shlex(a \n b) print ,.join(lexer) a,b lexer = shlex(a # comment \n b)

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-10-09 Thread Jan David Mol
Jan David Mol jjd...@gmail.com added the comment: Attached is a patch which fixes this for me. It basically does a fall-through using '\n' when encountering a comment. So that may be a bit of a hack (who says '\n' is the only newline char in there, and not '\r'?) but I'll leave the more

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-10-09 Thread Jan David Mol
Changes by Jan David Mol jjd...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7089 ___ ___

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-10-09 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: If you could add some tests to lib/test/test_shlex.py, there are more chances for this patch to be accepted. Also, consider the case when the comment is on the last line of input and there is no \n ending character. -- nosy: