New submission from Stian Soiland-Reyes:
urllib.parse can't handle URIs with empty #fragments. The fragment is removed
and not reconsituted.
http://tools.ietf.org/html/rfc3986#section-3.5 permits empty fragment strings:
URI-reference = [ absoluteURI | relativeURI ] [ "#
Stian Soiland-Reyes added the comment:
I tried to make a patch for this, but I found it quite hard as the
urllib/parse.py is fairly low-level, e.g. it is constantly encoding/decoding
bytes and strings within each URI component. Basically the code assumes there
are tuples of strings, with