[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1aafbdfba25a by Benjamin Peterson in branch '2.7': don't allow unicode into type_map on Windows (closes #21652) http://hg.python.org/cpython/rev/1aafbdfba25a -- resolution: - fixed stage: - resolved status: open - closed

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks Vladimir; I really appreciate your work on these issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-28 Thread Vladimir Iofik
Vladimir Iofik added the comment: Finally I got environment and some time. Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file35795/21652.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Vladimir, if you could provide a patch implementing your proposed rollback, that would be appreciated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-14 Thread Vladimir Iofik
Vladimir Iofik added the comment: Thanks, Martin. I didn't read the final with enough care. I think the second part of changes (the ones that are around QueryValueEx) should be rolled back. I believe the code was correct at that part. Tim, what do you think? --

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread James Y Knight
James Y Knight added the comment: Reverting the incorrect commit which caused the regression would be a good start. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread R. David Murray
R. David Murray added the comment: If I understand correct that patch was itself attempting to fix a regression ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Tim Golden
Tim Golden added the comment: Only if you have something better to put in its place! That commit was fixing an existing problem; perhaps not your problem, but someone's. To revert it would simply move the pain around. I hope to be able to work on this fairly soon. If anyone else wants to

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: That commit was fixing an existing problem; perhaps not your problem, but someone's. To revert it would simply move the pain around. Doesn't the very same logic apply to the original commit? I hope to be able to work on this fairly soon. Thanks.

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Vladimir Iofik
Vladimir Iofik added the comment: Did anyone here managed to reproduce the issue? I tired but I have failed to. I'm still trying though. Anyway I'd start from investigating why a function EnumKey returns Unicode object while according to documentation it should return string. --

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: I can reproduce the issue with the attached script. The problem is not that EnumKey returns a Unicode string (which it never does), but that QueryValueEx returns a Unicode string. See http://hg.python.org/cpython/rev/18cfc2a42772 for the actual change in

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-12 Thread Gavin Carothers
Gavin Carothers added the comment: Issue also exists in Pyramid (any wsgi server/framework) See https://github.com/Pylons/pyramid/issues/1360 for Pyramid bug. -- nosy: +gcarothers ___ Python tracker rep...@bugs.python.org

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-12 Thread Ned Deily
Ned Deily added the comment: If there is a regression to be fixed, there needs to be a patch with a test. Anyone? -- nosy: +benjamin.peterson, ned.deily priority: normal - release blocker ___ Python tracker rep...@bugs.python.org

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-03 Thread James Y Knight
New submission from James Y Knight: The change done for issue9291 in Python 2.7.7 caused the mimetypes.types_map dict to change to contain a mixture of str and unicode objects, rather than just str, as it always had before. This causes twisted.web to crash when serving static files on

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___