git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@288
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
# Work around a bug in Mozilla - remove the trailing comma
bkmk_s = bkmk_s.strip().replace(',]', ']')
bookmarks_dict = json.loads(bkmk_s)
+ del bkmk_s
root_folder = Folder()
root_folder.header = ''
def load_folder(self, folder, fdict):
if fdict["type"] != "text/x-moz-place-container":
- raise ValueError("Root object is not a Mozilla container")
+ raise ValueError("The object is not a Mozilla container")
folder.id = fdict["id"]
folder.index = fdict.get("index")