[wwwsearch-commits] r27778 - wwwsearch/mechanize/trunk/mechanize
jjlee at codespeak.net
jjlee at codespeak.net
Sun May 28 01:51:42 CEST 2006
Author: jjlee
Date: Sun May 28 01:51:40 2006
New Revision: 27778
Modified:
wwwsearch/mechanize/trunk/mechanize/_auth.py
Log:
Minor HTTPPasswordMgr simplification
Modified: wwwsearch/mechanize/trunk/mechanize/_auth.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_auth.py (original)
+++ wwwsearch/mechanize/trunk/mechanize/_auth.py Sun May 28 01:51:40 2006
@@ -162,15 +162,10 @@
scheme = parts[0]
authority = parts[1]
path = parts[2] or '/'
- elif parts[0]:
- # host:port
- scheme = None
- authority = uri
- path = '/'
else:
- # host
+ # host or host:port
scheme = None
- authority = parts[2]
+ authority = uri
path = '/'
host, port = splitport(authority)
if default_port and port is None and scheme is not None:
More information about the wwwsearch-commits
mailing list