From: Oleg Broytman Date: Sun, 8 Aug 2010 15:54:56 +0000 (+0000) Subject: Comments are always strings. X-Git-Tag: v4.5.3~137 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8a8b8b5bf01b5435e19c6854e137a3eff9bbf7d8;p=bookmarks_db.git Comments are always strings. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@239 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- 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 [{