From d998790c2f12594e6d0edc5a98e908677b60b31f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 17 Sep 2014 11:35:14 +1200 Subject: Clean up and clarify StateObject - Flatten the class hierarchy - get_state, load_state, from_state are public - Simplify code - Remove __eq__ and __neq__. This fundamentally changes the semantics of inherited objects in a way that's not part of the core function of the class --- examples/read_dumpfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/read_dumpfile') diff --git a/examples/read_dumpfile b/examples/read_dumpfile index c0a50d26..f5818483 100644 --- a/examples/read_dumpfile +++ b/examples/read_dumpfile @@ -12,7 +12,7 @@ with open("logfile", "rb") as logfile: for f in freader.stream(): print(f) print(f.request.host) - json.dump(f._get_state(), sys.stdout, indent=4) + json.dump(f.get_state(), sys.stdout, indent=4) print "" except flow.FlowReadError, v: - print "Flow file corrupted. Stopped loading." \ No newline at end of file + print "Flow file corrupted. Stopped loading." -- cgit v1.2.3