From 7c7aed0464f40b0b0bd2d2b76a0bf43219ec2d4d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Mar 2008 15:40:42 +0000 Subject: [PATCH] Minor optimization. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@210 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- check_title.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/check_title.py b/check_title.py index 5c23cf6..2a4f522 100755 --- a/check_title.py +++ b/check_title.py @@ -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 -- 2.39.2