From fd49fd89d9ad5570a0f98d2ca63178e81d999a4b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 18 Dec 2007 05:42:21 +0000 Subject: [PATCH] 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 --- Robots/parse_html_beautifulsoup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.39.2