# This is to catch 'close failed: [Errno 9] Bad file descriptor' message
# from os.close() in Subprocess.die() and errors from the subprocess.
-sys.stderr = open("err.log", 'a')
+sys.stderr = open("err.log", 'at')
check_subp = None
subp_pipe = None
"error", "no_error",
"moved", "size", "md5", "real_title",
"last_tested", "last_modified", "test_time",
- "icon", "icon_href",
+ "icon", "icon_href", "charset",
):
if hasattr(new_b, attr):
setattr(bookmark, attr, getattr(new_b, attr))
error = check_subp.readPendingErrLine()
if not error:
break
- sys.stderr.write("(subp) " + error)
+ sys.stderr.write("(subp) %s" % error)
sys.stderr.flush()
except KeyboardInterrupt: