# 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
class robot_forking(Robot):
- subproc = 'urllib2' # Default subprocess
+ subproc = 'urllib' # Default subprocess
def check_url(self, bookmark):
global _set_subproc
error = check_subp.readPendingErrLine()
if not error:
break
- sys.stderr.write("(subp) " + error)
+ sys.stderr.write("(subp) %s" % error)
sys.stderr.flush()
except KeyboardInterrupt: