importer: Add docstrings.

This commit is contained in:
Florian Bruhin 2014-10-15 06:18:43 +02:00
parent 7731547d80
commit 6489186342

View File

@ -22,6 +22,7 @@ import argparse
def main():
"""Main entry point."""
args = get_args()
if args.browser == 'chromium':
import_chromium(args.bookmarks)
@ -38,6 +39,7 @@ def get_args():
def import_chromium(bookmarks_file):
"""Import bookmarks from a HTML file generated by Chromium."""
import bs4
soup = bs4.BeautifulSoup(open(bookmarks_file, encoding='utf-8'))