importer: Use built-in open

This commit is contained in:
Florian Bruhin 2014-10-15 06:16:42 +02:00
parent abab935ca8
commit 78d5532227

View File

@ -38,10 +38,9 @@ def get_args():
def import_chromium(bookmarks_file): def import_chromium(bookmarks_file):
import codecs
from bs4 import BeautifulSoup 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') html_tags = soup.findAll('a')