importer: Whitespace cleanup
This commit is contained in:
parent
f9b4dbc9cb
commit
abab935ca8
@ -17,8 +17,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -26,6 +26,7 @@ def main():
|
|||||||
if args.browser == 'chromium':
|
if args.browser == 'chromium':
|
||||||
import_chromium(args.bookmarks)
|
import_chromium(args.bookmarks)
|
||||||
|
|
||||||
|
|
||||||
def get_args():
|
def get_args():
|
||||||
"""Get the argparse parser."""
|
"""Get the argparse parser."""
|
||||||
parser = argparse.ArgumentParser("usage: importer.py")
|
parser = argparse.ArgumentParser("usage: importer.py")
|
||||||
@ -35,6 +36,7 @@ def get_args():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
||||||
def import_chromium(bookmarks_file):
|
def import_chromium(bookmarks_file):
|
||||||
import codecs
|
import codecs
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
@ -51,6 +53,6 @@ def import_chromium(bookmarks_file):
|
|||||||
for bookmark in bookmarks:
|
for bookmark in bookmarks:
|
||||||
print(bookmark)
|
print(bookmark)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user