importer: Add docstrings.
This commit is contained in:
parent
7731547d80
commit
6489186342
@ -22,6 +22,7 @@ import argparse
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
"""Main entry point."""
|
||||||
args = get_args()
|
args = get_args()
|
||||||
if args.browser == 'chromium':
|
if args.browser == 'chromium':
|
||||||
import_chromium(args.bookmarks)
|
import_chromium(args.bookmarks)
|
||||||
@ -38,6 +39,7 @@ def get_args():
|
|||||||
|
|
||||||
|
|
||||||
def import_chromium(bookmarks_file):
|
def import_chromium(bookmarks_file):
|
||||||
|
"""Import bookmarks from a HTML file generated by Chromium."""
|
||||||
import bs4
|
import bs4
|
||||||
|
|
||||||
soup = bs4.BeautifulSoup(open(bookmarks_file, encoding='utf-8'))
|
soup = bs4.BeautifulSoup(open(bookmarks_file, encoding='utf-8'))
|
||||||
|
Loading…
Reference in New Issue
Block a user