def safe_url(url):
    parsed = urlparse(url)
    if parsed.password is not None:
        pwd = ':%s@' % parsed.password
        url = url.replace(pwd, ':*****@')
    return url
Run a function in a thread and return the result as a Deferred.
dataset/ETHPy150Open pudo/dataset/dataset/persistence/util.py/safe_url--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/threads.py/deferToThread