git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@108
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
root = BeautifulSoup(infile, fromEncoding=charset)
infile.close()
root = BeautifulSoup(infile, fromEncoding=charset)
infile.close()
- charset = root.originalEncoding
+ _charset = root.originalEncoding
- title = root.html.head.title.string.encode(charset)
+ title = root.html.head.title.string.encode(_charset)
except AttributeError:
title = ''
except AttributeError:
title = ''
- parser = BSoupParser(charset, False, title, refresh, icon)
+ parser = BSoupParser(_charset, _charset == charset, title, refresh, icon)
return parser
def _find_refresh(Tag):
return parser
def _find_refresh(Tag):