Mercurial > hg-stable
changeset 5802:d852151fb8d4
util: drop params added during experimentation
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 04 Jan 2008 13:56:31 -0800 |
parents | 86f5d8f608b7 |
children | a8e4a94b0a43 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)