From 78d5532227c77f3e98b25b89c23a0fff7502024c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 15 Oct 2014 06:16:42 +0200 Subject: [PATCH] importer: Use built-in open --- scripts/importer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/importer.py b/scripts/importer.py index b57afd964..ca67ebd04 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -38,10 +38,9 @@ def get_args(): def import_chromium(bookmarks_file): - import codecs from bs4 import BeautifulSoup - soup = BeautifulSoup(codecs.open(bookmarks_file, encoding='utf-8')) + soup = BeautifulSoup(open(bookmarks_file, encoding='utf-8')) html_tags = soup.findAll('a')