importer: Clean up string formatting

This commit is contained in:
Florian Bruhin 2014-10-15 06:17:52 +02:00
parent 2d7ea2e1fa
commit 7731547d80

View File

@ -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)