]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_objects.py
Fixed a bug in handling "place:" URLs -- do not add "//".
[bookmarks_db.git] / bkmk_objects.py
index 9627e6516a75af1fbb0b19d879a843ab5c1f383b..23fb816ee180100100722ee2b7ac9818cf63390d 100644 (file)
@@ -1,6 +1,7 @@
 """Objects to represent bookmarks.html structure
 
 This file is a part of Bookmarks database and Internet robot.
+
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
@@ -65,7 +66,10 @@ class Bookmark:
          host, port = urllib.splitport(host)
          if port: port = int(port)
 
-      href = protocol + "://"
+      if protocol == 'place':
+         href = protocol + ":"
+      else:
+         href = protocol + "://"
       if user:
          href += urllib.quote(user)
          if password: