From: Oleg Broytman Date: Tue, 24 Aug 2010 17:40:11 +0000 (+0000) Subject: No need to call .lower() two times. X-Git-Tag: v4.5.3~89 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=1666eb3f5d14ca9b798782ae1de99e9f2c0ae611 No need to call .lower() two times. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@287 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- 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':