def reserve_quota_delta(context, deltas, instance):
 quotas = objects.Quotas(context=context)
 if deltas:
  (project_id, user_id) = objects.quotas.ids_from_instance(context, instance)
  quotas.reserve(project_id=project_id, user_id=user_id, **deltas)
 return quotas

def reserve_quota_delta ( context , deltas , instance ) : quotas = objects . Quotas ( context = context ) if deltas : ( project_id , user_id ) = objects . quotas . ids_from_instance ( context , instance ) quotas . reserve ( project_id = project_id , user_id = user_id , ** deltas ) return quotas
if there are deltas to reserve .