def parse_att(output, att, indent):
if isinstance(att[<NUM_LIT:1>], bs):<EOL><INDENT>outputStr = '''<STR_LIT>'''.format(<EOL>indent=indent,<EOL>attribute=ATTRIBUTE,<EOL>name=NAME,<EOL>attname=sanitize(att[<NUM_LIT:0>], spaces=False),<EOL>value=VALUE,<EOL>attvalue=sanitize(att[<NUM_LIT:1>])<EOL>)<EOL>if '<STR_LIT>' in att[<NUM_LIT:1>]:<EOL><INDENT>foo = io.StringIO()<EOL>foo.write(outputStr)<EOL><DEDENT>output.write(outputStr)<EOL><DEDENT>else:<EOL><INDENT>att_type = type_map.get(type(att[<NUM_LIT:1>]), '<STR_LIT>')<EOL>output.write('''<STR_LIT>'''.format(<EOL>indent=indent,<EOL>attribute=ATTRIBUTE,<EOL>name=NAME,<EOL>attname=sanitize(att[<NUM_LIT:0>]),<EOL>type=TYPE,<EOL>att_type=att_type,<EOL>value=VALUE,<EOL>attvalue=att[<NUM_LIT:1>]<EOL>)<EOL>)<EOL><DEDENT>
att is a tuple: (name, value)