From 7731547d80e1ecb4d8ad1dc019d07d0a48d6575c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 15 Oct 2014 06:17:52 +0200 Subject: [PATCH] importer: Clean up string formatting --- scripts/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/importer.py b/scripts/importer.py index 7fbe94c96..812e68f0c 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -47,7 +47,7 @@ def import_chromium(bookmarks_file): bookmarks = [] for tag in html_tags: if tag['href'] not in bookmarks: - bookmarks.append(str(tag.string) + ' ' + str(tag['href'])) + bookmarks.append('{tag.string} {tag[href]}'.format(tag=tag)) for bookmark in bookmarks: print(bookmark)