author | Bryan O'Sullivan <bos@serpentine.com> |
Fri, 04 Jan 2008 13:56:31 -0800 | |
changeset 5802 | d852151fb8d4 |
parent 5798 | 86f5d8f608b7 |
child 5803 | a8e4a94b0a43 |
mercurial/util.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/util.py Fri Jan 04 11:58:27 2008 -0800 +++ b/mercurial/util.py Fri Jan 04 13:56:31 2008 -0800 @@ -1707,7 +1707,7 @@ # Avoid double backslash in Windows path repr() return repr(s).replace('\\\\', '\\') -def hidepassword(url, user=True, password=True): +def hidepassword(url): '''hide user credential in a url string''' scheme, netloc, path, params, query, fragment = urlparse.urlparse(url) netloc = re.sub('([^:]*):([^@]*)@(.*)', r'\1:***@\3', netloc)