]> git.phdru.name Git - bookmarks_db.git/commitdiff
Comments are always strings.
authorOleg Broytman <phd@phdru.name>
Sun, 8 Aug 2010 15:54:56 +0000 (15:54 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 8 Aug 2010 15:54:56 +0000 (15:54 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@239 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Storage/bkmk_stjson.py

index 1194aed0743167fc796724fbab3784d001fb7f29..d44e1114a15a9705b794f6b78413e5800c1b08f9 100644 (file)
@@ -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 [{