From 1666eb3f5d14ca9b798782ae1de99e9f2c0ae611 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 24 Aug 2010 17:40:11 +0000 Subject: [PATCH] No need to call .lower() two times. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@287 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/parse_html_htmlparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Robots/parse_html_htmlparser.py b/Robots/parse_html_htmlparser.py index 351fc74..7702162 100644 --- a/Robots/parse_html_htmlparser.py +++ b/Robots/parse_html_htmlparser.py @@ -1,7 +1,7 @@ """ HTML Parser - Written by Broytman. Copyright (C) 1997-2008 PhiloSoft Design + Written by Broytman. Copyright (C) 1997-2010 PhiloSoft Design """ from HTMLParser import HTMLParseError @@ -63,7 +63,7 @@ class HTMLParser(_HTMLParser): for attrname, value in attrs: if value: - value = value.strip().lower() + value = value.strip() if (attrname == 'rel') and (value.lower() in ('icon', 'shortcut icon')): has_icon = True elif attrname == 'href': -- 2.39.5