perceval/backends/core/gerrit.py
def parse_reviews(raw_data):
        """Parse a Gerrit reviews list."""

        # Join isolated reviews in JSON in array for parsing
        items_raw = "[" + raw_data.replace("\n", ",") + "]"
        items_raw = items_raw.replace(",]", "]")
        items = json.loads(items_raw)
        reviews = []

        for item in items:
            if 'project' in item.keys():
                reviews.append(item)

        return reviews
def parse_reviews(raw_data):
        # Join isolated reviews in JSON in array for parsing
        items_raw = "[" + raw_data.replace("\n", ",") + "]"
        items_raw = items_raw.replace(",]", "]")
        items = json.loads(items_raw)
        reviews = []

        for item in items:
            if 'project' in item.keys():
                reviews.append(item)

        return reviews
def parse_reviews ( raw_data ) : # Join isolated reviews in JSON in array for parsing items_raw = "[" + raw_data . replace ( "\n" , "," ) + "]" items_raw = items_raw . replace ( ",]" , "]" ) items = json . loads ( items_raw ) reviews = [ ] for item in items : if 'project' in item . keys ( ) : reviews . append ( item ) return reviews
Parse a Gerrit reviews list.
Parse a Gerrit reviews list .