def clean_username(self, username, request):
    """
    Allows the backend to clean the username, if the backend defines a
    clean_username method.
    """
    backend_str = request.session[BACKEND_SESSION_KEY]
    backend = load_backend(backend_str)
    try:
      username = backend.clean_username(username)
    except __HOLE__:
      pass
    return username
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/middleware.py/SpnegoMiddleware.clean_username