- if hasattr(object, "real_title") and (object.real_title is not None):
- unquoted_title = unquote_title(quote_title(object.real_title))
- unquoted_name = unquote_title(object.name)
- if unquoted_name <> unquoted_title:
- print object.href
- print unquoted_name
- print unquoted_title
- print
- else:
- print object.href
- print object.name
- print "NO REAL TITLE!!!"
- print
+ if hasattr(object, "real_title") and (object.real_title is not None):
+ unquoted_title = unquote_title(quote_title(object.real_title))
+ unquoted_name = unquote_title(object.name)
+ if unquoted_name != unquoted_title:
+ print(object.href)
+ print(unquoted_name)
+ print(unquoted_title)
+ print()
+ else:
+ print(object.href)
+ print(object.name)
+ print("NO REAL TITLE!!!")
+ print()