From 7670212a907ce6c1758d402b947e4ff4b98763e7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 21 Sep 2012 22:54:58 +0000 Subject: [PATCH] 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 --- bkmk_objects.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.39.2