diff options
author | Florian Bruhin <git@the-compiler.org> | 2014-10-15 06:17:52 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2014-10-15 06:17:52 +0200 |
commit | 7731547d80e1ecb4d8ad1dc019d07d0a48d6575c (patch) | |
tree | 0b3245f2765e0605614393040cd7fb680fe6da53 /scripts/importer.py | |
parent | 2d7ea2e1fac46d9440fec3e861b54baf9a595ad7 (diff) | |
download | qutebrowser-7731547d80e1ecb4d8ad1dc019d07d0a48d6575c.tar.gz qutebrowser-7731547d80e1ecb4d8ad1dc019d07d0a48d6575c.zip |
importer: Clean up string formatting
Diffstat (limited to 'scripts/importer.py')
-rwxr-xr-x | scripts/importer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |