diff options
author | Florian Bruhin <git@the-compiler.org> | 2014-10-15 06:16:12 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2014-10-15 06:16:12 +0200 |
commit | abab935ca8375af703f56a020ce46cc170c9ffaa (patch) | |
tree | d4eedd7e0031f4cab4e6bfcc38800ddba08da0c5 /scripts/importer.py | |
parent | f9b4dbc9cba4bc9af1db86b9f506fd6c85b4fd34 (diff) | |
download | qutebrowser-abab935ca8375af703f56a020ce46cc170c9ffaa.tar.gz qutebrowser-abab935ca8375af703f56a020ce46cc170c9ffaa.zip |
importer: Whitespace cleanup
Diffstat (limited to 'scripts/importer.py')
-rwxr-xr-x | scripts/importer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/importer.py b/scripts/importer.py index 73d9b25be..b57afd964 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -17,8 +17,8 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. -import argparse +import argparse def main(): @@ -26,6 +26,7 @@ def main(): if args.browser == 'chromium': import_chromium(args.bookmarks) + def get_args(): """Get the argparse parser.""" parser = argparse.ArgumentParser("usage: importer.py") @@ -35,6 +36,7 @@ def get_args(): args = parser.parse_args() return args + def import_chromium(bookmarks_file): import codecs from bs4 import BeautifulSoup @@ -51,6 +53,6 @@ def import_chromium(bookmarks_file): for bookmark in bookmarks: print(bookmark) + if __name__ == '__main__': main() - |