sys.exit(1)
if log_filename:
- log_file = open(log_filename, 'w')
+ log_file = open(log_filename, 'wt')
from storage import storage
storage = storage()
if object.isBookmark:
href = object.href
- if dup_dict.has_key(href):
+ if href in dup_dict:
report_dup(href, dup_dict[href])
else:
dup_dict[href] = object_no