def process_dict(self, d, level, comments):
        """
        Process keys and values within a block
        """
        lines = []

        for k, v in d.items():
            if not self.__is_metadata(k):
                qk = self.quoter.add_quotes(k)
                qv = self.quoter.add_quotes(v)
                line = self.__format_line(self.whitespace(level, 2), qk, qv)
                line += self.process_attribute_comment(comments, k)
                lines.append(line)

        return lines
def process_dict ( self , d , level , comments ) : lines = [ ] for k , v in d . items ( ) : if not self . __is_metadata ( k ) : qk = self . quoter . add_quotes ( k ) qv = self . quoter . add_quotes ( v ) line = self . __format_line ( self . whitespace ( level , 2 ) , qk , qv ) line += self . process_attribute_comment ( comments , k ) lines . append ( line ) return lines
Process keys and values within a block