From 43a5cbf292ea2e4def610f96d38c86d86f7ccfa6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 13 Oct 2007 13:34:21 +0000 Subject: [PATCH] Break loops to avoid recursion problems. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@94 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- set-title-list.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/set-title-list.py b/set-title-list.py index 34a4abb..589aa0d 100755 --- a/set-title-list.py +++ b/set-title-list.py @@ -2,7 +2,7 @@ """ Run through the bookmarks database and set names to titles from an external file - Written by BroytMann, May 2003 - May 2003. Copyright (C) 2003 PhiloSoft Design + Written by BroytMann. Copyright (C) 2003-2007 PhiloSoft Design. """ @@ -24,7 +24,7 @@ def run(): pass if report_stats: - print "BroytMann set-title-list, Copyright (C) 2003 PhiloSoft Design" + print "BroytMann set-title-list, Copyright (C) 2003-2007 PhiloSoft Design" if len(args) <> 1: sys.stderr.write("Usage: set-title-list [-s] title_list_file\n") @@ -71,7 +71,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) @@ -102,6 +102,7 @@ def run(): sys.stdout.flush() if changed: + break_tree(root_folder.linear) storage.store(root_folder) if changed and report_stats: -- 2.39.5