def convert_taxness(request, item, priceful, with_taxes):
 if ((with_taxes is None) or (priceful.price.includes_tax == with_taxes)):
  return priceful
 taxed_priceful = _make_taxed(request, item, priceful, with_taxes)
 return (taxed_priceful if taxed_priceful else priceful)

def convert_taxness ( request , item , priceful , with_taxes ) : if ( ( with_taxes is None ) or ( priceful . price . includes_tax == with_taxes ) ) : return priceful taxed_priceful = _make_taxed ( request , item , priceful , with_taxes ) return ( taxed_priceful if taxed_priceful else priceful )
convert taxness of a priceful object .