From: Arvin Schnell Date: Wed, 5 Sep 2012 08:09:24 +0000 (+0200) Subject: - updated example X-Git-Tag: v0.1.3~114 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=baf4786d12921b0983ff881964bd5edd03a2cd2f;p=thirdparty%2Fsnapper.git - updated example --- diff --git a/examples/python/comparison.py b/examples/python/comparison.py index 89ec73fd..5c6461c7 100755 --- a/examples/python/comparison.py +++ b/examples/python/comparison.py @@ -14,18 +14,8 @@ num_post = 53 snapper.CreateComparison(config_name, num_pre, num_post) - files = snapper.GetFiles(config_name, num_pre, num_post) for file in files: - print file[0], file[1], file[2] - - -snapper.SetUndoAll(config_name, num_pre, num_post, True) - - -undo_steps = snapper.GetUndoSteps("root", num_pre, num_post) - -for undo_step in undo_steps: - print undo_step[0], undo_step[1] + print file[0], file[1]