]> git.phdru.name Git - bookmarks_db.git/commitdiff
No need to call .lower() two times.
authorOleg Broytman <phd@phdru.name>
Tue, 24 Aug 2010 17:40:11 +0000 (17:40 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 24 Aug 2010 17:40:11 +0000 (17:40 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@287 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/parse_html_htmlparser.py

index 351fc749c9941d4532d48b6720139fdb634fbd46..77021624ff9543a82ebe26cc170398a49f13a6bb 100644 (file)
@@ -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':