From 2f16a8213264a9428b31228373a5aae7605f5575 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 24 Sep 2004 05:33:12 -0400 Subject: fixed an obscure "print" bug --- main.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 0b400f14..1f7157a8 100755 --- a/main.py +++ b/main.py @@ -262,11 +262,18 @@ if config.predicate: # simple walk in C++, using `walk_entries'. if 1: - walk_entries (journal, handler) + if command == "e": + walk_transactions (new_entry, handler) + else: + walk_entries (journal, handler) else: - for entry in journal: - for xact in entry: + if command == "e": + for xact in new_entry: handler (xact) + else: + for entry in journal: + for xact in entry: + handler (xact) # Flush the handlers, causing them to output whatever data is still # pending. -- cgit v1.2.3