code: def safe_url(url):
      
      parsed = urlparse(url)
      if parsed.password is not None:
          pwd = ':%s@' % parsed.password
          url = url.replace(pwd, ':*****@')
      return url
docs: Remove password from printed connection URLs.