def format_pair_list(self, key, pair_list, level):
lines = [self.add_start_line(key, level)]<EOL>list_spacer = self.spacer * (level + <NUM_LIT:2>)<EOL>pairs = ["<STR_LIT>".format(list_spacer, p[<NUM_LIT:0>], p[<NUM_LIT:1>]) for p in pair_list]<EOL>lines += pairs<EOL>lines.append(self.add_end_line(level, <NUM_LIT:1>, key))<EOL>return lines<EOL>
Process lists of pairs (e.g. PATTERN block)