def __init__(self, cart_dict=None):
cart_dict = cart_dict or {}<EOL>if cart_dict == {}:<EOL><INDENT>self.total = <NUM_LIT:0><EOL>self.subtotal = <NUM_LIT:0><EOL>self.items = []<EOL><DEDENT>else:<EOL><INDENT>self.total = cart_dict["<STR_LIT>"]<EOL>self.subtotal = cart_dict["<STR_LIT>"]<EOL>self.items = cart_dict["<STR_LIT>"]<EOL><DEDENT>self.extra_amount = float(app.config['<STR_LIT>'])<EOL>
Initializing class