~trufas/ledgeroni

7a9e4ad4a64b45840f93b4ab44b6c2e463e16b13 — Rafael Castillo 1 year, 9 months ago 9c106be
Clean up stdout
2 files changed, 0 insertions(+), 4 deletions(-)

M ledgeroni/commands/print.py
M ledgeroni/expression.py
M ledgeroni/commands/print.py => ledgeroni/commands/print.py +0 -2
@@ 25,8 25,6 @@ def print_transactions(ctx, filter_strs):
    for filename in ctx.obj.get('LEDGER_FILES', []):
        journal.add_from_file(filename)

    print(journal)

    errors = journal.verify_transaction_balances()
    if errors:
        for error in errors:

M ledgeroni/expression.py => ledgeroni/expression.py +0 -2
@@ 22,7 22,6 @@ def build_postfix_expression(expr_str):
    output = deque()
    last_was_expr = False
    for token in tokenize_expression(expr_str):
        print(token)
        if token == '(':
            if last_was_expr:
                flush_op_stack('or', operator_stack, output)


@@ 37,7 36,6 @@ def build_postfix_expression(expr_str):
            if op != '(':
                raise ValueError
        elif token in ('and', 'or', 'not', '@', 'payee'):
            print('ok')
            flush_op_stack(token, operator_stack, output)
            operator_stack.append(token)
        else: