[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-07-30 Thread Georg Brandl
Georg Brandl added the comment: Yes, you're right. Committed in r83283. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-07-30 Thread Jason R. Coombs
Jason R. Coombs added the comment: Is it still worthwhile to add the test to the suite to catch a regression? -- ___ Python tracker ___ __

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-07-30 Thread Georg Brandl
Georg Brandl added the comment: This is fixed in py3k trunk by other means; exec() now accepts bytestrings with "unusual" newlines. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: Is there a reason this didn't get reviewed for the 3.1.2 release? What steps need to be taken to see that it makes it into a 3.1.3 release? -- ___ Python tracker

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-02-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: Attached is a patch against the py3k branch that fixes the issue by changing the mode used to open the target script. It includes a unittest that elicits the issue and validates the fix. The patch should also probably be applied to the 31maint branch. -

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-02-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm interested in finding a workaround for this issue in the next 24 hours. I can also help contribute a test case. I'll investigate further. -- nosy: +jaraco ___ Python tracker

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-02-19 Thread R. David Murray
R. David Murray added the comment: It's a bug, and the bug is fixed (indirectly) in py3k trunk via improvements to the 'compile' function. That fix can't be backported because it is a behavior change. On the other hand, it appears as though the fix is to change the open statement from using

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-02-19 Thread R. David Murray
R. David Murray added the comment: It's a bug, and the bug is fixed (indirectly) in py3k trunk via improvements to the 'compile' function. That fix can't be backported because it is a behavior change, so fixing this in 3.1 would require fixing pdb to deal with universal new lines. I don't t

[issue7964] "-m pdb" SyntaxError for "\r\n" formatted py files

2010-02-19 Thread Michael Newman
New submission from Michael Newman : Attached is a version checking script. When you run it normally, it produces output such as: E:\notes\Programming\python3>c:\Python26\python.exe version_check.py 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] E:\notes\Programming\pyth