@shared_task()
def update_email_in_basket(old_email, new_email):
 if ((not BASKET_ENABLED) or (not waffle.switch_is_active('BASKET_SWITCH_ENABLED'))):
  return
 chain((lookup_user_task.subtask((old_email,)) | group(subscribe_user_task.subtask((new_email,)), unsubscribe_user_task.subtask()))).delay()

@ shared_task ( ) def update_email_in_basket ( old_email , new_email ) : if ( ( not BASKET_ENABLED ) or ( not waffle . switch_is_active ( 'BASKET_SWITCH_ENABLED' ) ) ) : return chain ( ( lookup_user_task . subtask ( ( old_email , ) ) | group ( subscribe_user_task . subtask ( ( new_email , ) ) , unsubscribe_user_task . subtask ( ) ) ) ) . delay ( )
update user emails in basket .