From: Oleg Broytman Date: Tue, 18 Dec 2007 05:42:21 +0000 (+0000) Subject: Fixed a bug = meta_charset is True if HTTP charset is not guessed charset. X-Git-Tag: v4.5.3~265 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=fd49fd89d9ad5570a0f98d2ca63178e81d999a4b;p=bookmarks_db.git Fixed a bug = meta_charset is True if HTTP charset is not guessed charset. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@111 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index c8e8f5d..8c51d05 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -49,7 +49,7 @@ def parse_html(filename, charset=None): else: icon = None - return BSoupParser(_charset, _charset == charset, title, refresh, icon) + return BSoupParser(_charset, _charset != charset, title, refresh, icon) def _find_refresh(Tag): return (Tag.name == "meta") and \