importer: Use built-in open
This commit is contained in:
parent
abab935ca8
commit
78d5532227
@ -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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user