@shared_task()
def unsubscribe_from_basket_task(email, newsletters=[]):
 if ((not BASKET_ENABLED) or (not waffle.switch_is_active('BASKET_SWITCH_ENABLED'))):
  return
 chain((lookup_user_task.subtask((email,)) | unsubscribe_user_task.subtask((newsletters,)))).delay()

@ shared_task ( ) def unsubscribe_from_basket_task ( email , newsletters = [ ] ) : if ( ( not BASKET_ENABLED ) or ( not waffle . switch_is_active ( 'BASKET_SWITCH_ENABLED' ) ) ) : return chain ( ( lookup_user_task . subtask ( ( email , ) ) | unsubscribe_user_task . subtask ( ( newsletters , ) ) ) ) . delay ( )
remove user from basket task .