From 8a8b8b5bf01b5435e19c6854e137a3eff9bbf7d8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 8 Aug 2010 15:54:56 +0000 Subject: [PATCH] Comments are always strings. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@239 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Storage/bkmk_stjson.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index 1194aed..d44e111 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -183,14 +183,14 @@ def encode(title): def get_comment(annos): if not annos: - return None + return '' for a in annos: if a["name"] == "bookmarkProperties/description" and \ a["type"] == 3: return a["value"].encode('utf-8') - return None + return '' def make_annos(value, name="bookmarkProperties/description"): return [{ -- 2.39.5