<s> from yaml import load , dump <EOL> try : <EOL> from yaml import CLoader as Loader , CDumper as Dumper <EOL> assert False , "<STR_LIT>" <EOL> except ImportError : <EOL> from yaml import Loader , Dumper <EOL> try : <EOL> unicode <EOL> except NameError : <EOL> unicode = str <EOL> import sys <EOL> def parse_list ( ) : <EOL> data = load ( sys . argv [ <NUM_LIT:1> ] ) <EOL> for i in data : <EOL> sys . stdout . write ( str ( i ) + "<STR_LIT:\n>" ) <EOL> def parse_tuple_list ( ) : <EOL> data = load ( sys . argv [ <NUM_LIT:1> ] ) <EOL> for k , v in data : <EOL> sys . stdout . write ( str ( k ) + "<STR_LIT:U+0020>" + str ( v ) + "<STR_LIT:\n>" ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> if sys . argv [ <NUM_LIT:2> ] == "<STR_LIT:list>" : <EOL> parse_list ( ) <EOL> else : <EOL> parse_dict ( ) <EOL> sys . exit ( <NUM_LIT:1> ) </s>
