[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?
Stac added the comment: Hello, This patch has never been commited. I tested today with the 3.1 branch (and checked in the lib code). Is there a better way to attach images in an email ? Thanks in advance for your help, Regards, Stac -- nosy: +stac ___ Python tracker <http://bugs.python.org/issue4768> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks
Stac added the comment: Hello, I am new to Python issues tracker. I had the error described above. I worked on it. I was not able to solve the issue only using subprocess. The command has to be correctly formated (with the double quotes). I corrected the cmdline definition as described first and migrated from popen2 and popen3 to subprocess. I don't think I have the rights to commit any code so I send the modified file. Don't hesitate to tell me if you want me do to more. Regards, Stac PS : For information, the attached file correct the following error : localhost - - [21/Oct/2009 17:20:52] "POST /cgi/test.py HTTP/1.1" 200 - localhost - - [21/Oct/2009 17:20:52] command: C:\Produits\Python26\python.exe -u C:\Documents and Settings\stac\workspace\PyToolkit\src\network\cgi\test.py "" localhost - - [21/Oct/2009 17:20:53] C:\Produits\Python26\python.exe: can't open file 'C:\Documents': [Errno 2] No such file or directory Now you have : localhost - - [21/Oct/2009 16:48:46] "POST /cgi/test.py HTTP/1.1" 200 - localhost - - [21/Oct/2009 16:48:46] command: C:\Produits\Python26\python.exe -u "C:\Documents and Settings\stac\workspace\PyToolkit\src\network\cgi\test.py" "" localhost - - [21/Oct/2009 16:48:47] CGI script exited OK -- nosy: +stac versions: -Python 3.0 Added file: http://bugs.python.org/file15175/MyCGIHTTPServer.py ___ Python tracker <http://bugs.python.org/issue1235> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks
Stac added the comment: Oups, I really feel sorry. Well here is a version with the modified cmdline. I will check how the migration was done in py3k. Just a quick question : why the changes done in py3k was not reported to py2.x ? Regards, Stac -- Added file: http://bugs.python.org/file15179/MyCGIHTTPServer.py ___ Python tracker <http://bugs.python.org/issue1235> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks
Stac added the comment: Ok, I corrected the two versions. Now the one for py2.x is closer to the fix for py3k. You'll find below the fixed code for both version. Regards, Stac -- Added file: http://bugs.python.org/file15180/fix.tar ___ Python tracker <http://bugs.python.org/issue1235> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks
Changes by Stac : Removed file: http://bugs.python.org/file15175/MyCGIHTTPServer.py ___ Python tracker <http://bugs.python.org/issue1235> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com