classification
Title: macurl2path has typos that raise AttributeError
Type: crash Stage:
Components: Library (Lib) Versions: Python 3.0, Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: joe.amenta, orsenthil
Priority: normal Keywords: patch

Created on 2009-08-16 06:25 by joe.amenta, last changed 2009-08-20 14:56 by orsenthil. This issue is now closed.

Files
File name Uploaded Description Edit
py3k_url2path.patch joe.amenta, 2009-08-16 06:25 Fixes calls to urllib.parse
Messages (2)
msg91627 - (view) Author: Joe Amenta (joe.amenta) Date: 2009-08-16 06:25
In a few spots, "urllib.parse" misses a "." after the package name.

e.g., "urllib.parse.quote" is spelled "urllib.parsequote", which
generates an AttributeError when run.

To reproduce, open up a python3.x interpreter and execute:
from macurl2path import *
url2pathname('doesnt_matter_what')
pathname2url('some_string')
_pncomp2url('something_else')

Attaching a patch that will fix the issue.
msg91628 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-08-16 06:47
Thanks for the patch. 

Fixed it and 

Committed revision 74469 - py3.2
Committed revision 74470 - py3.1 maint.

I wonder how it got unnoticed so far.
History
Date User Action Args
2009-08-20 14:56:12orsenthilsetstatus: open -> closed
2009-08-16 06:47:20orsenthilsetnosy: + orsenthil
messages: + msg91628

assignee: orsenthil
resolution: fixed
2009-08-16 06:25:38joe.amentacreate