From: Oleg Broytman Date: Fri, 21 Sep 2012 22:54:58 +0000 (+0000) Subject: Fixed a bug in handling "place:" URLs -- do not add "//". X-Git-Tag: v4.5.3~14 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=7670212a907ce6c1758d402b947e4ff4b98763e7 Fixed a bug in handling "place:" URLs -- do not add "//". git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@362 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/bkmk_objects.py b/bkmk_objects.py index 9627e65..23fb816 100644 --- a/bkmk_objects.py +++ b/bkmk_objects.py @@ -1,6 +1,7 @@ """Objects to represent bookmarks.html structure This file is a part of Bookmarks database and Internet robot. + """ __author__ = "Oleg Broytman " @@ -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: