]> git.phdru.name Git - bookmarks_db.git/commitdiff
Minor optimization.
authorOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2008 15:40:42 +0000 (15:40 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2008 15:40:42 +0000 (15:40 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@210 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

check_title.py

index 5c23cf615a28d0bc5fb6fd6883a5fe25c728f0b1..2a4f522d500b074d962b7d268321cc4fd3c75e65 100755 (executable)
@@ -2,7 +2,7 @@
 """
    Check and show URLs in the bookmarks database where name <> real title
 
-   Written by BroytMann. Copyright (C) 2002-2007 PhiloSoft Design.
+   Written by BroytMann. Copyright (C) 2002-2008 PhiloSoft Design.
 """
 
 import sys
@@ -24,7 +24,7 @@ def run():
       pass
 
    if report_stats:
-      print "BroytMann check_title, Copyright (C) 2002-2007 PhiloSoft Design"
+      print "BroytMann check_title, Copyright (C) 2002-2008 PhiloSoft Design"
 
    if args:
       sys.stderr.write("check_title: too many arguments\n")
@@ -54,12 +54,12 @@ def run():
             continue
 
          if hasattr(object, "real_title"):
-            quoted_title = unquote_title(quote_title(object.real_title))
+            unquoted_title = unquote_title(quote_title(object.real_title))
             unquoted_name = unquote_title(object.name)
-            if unquote_title(object.name) <> quoted_title:
+            if unquoted_name <> unquoted_title:
                print object.href
                print unquoted_name
-               print quoted_title
+               print unquoted_title
                print
          else:
             print object.href