def parse_entry(self, str):
        tags = self.parse_tags(str)
        str = re.sub(";.*$", "", str)

        elements = [e for e in re.split(r"  +", str) if e]
        if len(elements) >= 1:
            account = self.parse_account(elements[0])
            amount = None
            if len(elements) >= 2:
                amount = self.parse_value(elements[1])
            if account:
                return Entry(account, amount, tags)
dataset/ETHPy150Open pcapriotti/pledger/pledger/parser.py/Parser.parse_entry/original