importer: Add docstrings.
This commit is contained in:
parent
7731547d80
commit
6489186342
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user