From a1b7edb2f925e22c9ad843496e13c687ce395e44 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 11 Oct 2007 01:27:40 +0000 Subject: [PATCH] Break loops to prevent infinite loop error. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@84 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- check_urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_urls.py b/check_urls.py index 4081637..82d4af6 100755 --- a/check_urls.py +++ b/check_urls.py @@ -70,7 +70,7 @@ def run(): sys.stdout.flush() root_folder = storage.load() - from bkmk_objects import make_linear + from bkmk_objects import make_linear, break_tree make_linear(root_folder) objects = len(root_folder.linear) @@ -142,6 +142,7 @@ def run(): print urls_no, "URLs checked" print size, "bytes eaten" + break_tree(root_folder.linear) storage.store(root_folder) if rcode: -- 2.39.5