for attr_name in ("last_visit", "last_modified",
"error", "no_error", "moved", "size", "md5", "real_title",
"last_tested", "test_time", "icon", "charset"):
if hasattr(old_object, attr_name):
setattr(object, attr_name, getattr(old_object, attr_name))
else:
for attr_name in ("last_visit", "last_modified",
"error", "no_error", "moved", "size", "md5", "real_title",
"last_tested", "test_time", "icon", "charset"):
if hasattr(old_object, attr_name):
setattr(object, attr_name, getattr(old_object, attr_name))
else: