<s> from lfs . plugins import ShippingMethodPriceCalculator <EOL> class GrossShippingMethodPriceCalculator ( ShippingMethodPriceCalculator ) : <EOL> """<STR_LIT>""" <EOL> def get_price_net ( self ) : <EOL> """<STR_LIT>""" <EOL> price = self . get_price ( ) <EOL> tax_rate = self . get_tax_rate ( ) <EOL> return price / ( ( <NUM_LIT:100> + tax_rate ) / <NUM_LIT:100> ) <EOL> def get_price_gross ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . get_price ( ) <EOL> class NetShippingMethodPriceCalculator ( ShippingMethodPriceCalculator ) : <EOL> """<STR_LIT>""" <EOL> def get_price_net ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . get_price ( ) <EOL> def get_price_gross ( self ) : <EOL> """<STR_LIT>""" <EOL> price = self . get_price ( ) <EOL> tax_rate = self . get_tax_rate ( ) <EOL> return price * ( ( <NUM_LIT:100> + tax_rate ) / <NUM_LIT:100> ) </s>
