I am not master of python , modified this now can run under python3 ,
webkit_server.py line124:
raise NodeError, "Unselect not allowed."
changed to
raise NodeError("Unselect not allowed.")
the same line 401:
raise NoX11Error("Cannot connect to X. You can try running with xvfb-run.")
the same line 462:
raise NoResponseError("No response received from server.")
the same line 465:
raise InvalidResponseError(self._read_message())
the same line 484:
raise EndOfStreamError("Unexpected end of stream.")
- line 399
self._port = int(re.search("port: (\d+)", output.decode()).group(1))
- send bytes
line 454
self._sock.send(bytes(arg,'utf-8'))
line 502
self._sock.send(bytes(line + "\n",'utf-8'))#
- recv decode
line 495
c = c.decode('utf-8')#
- line 487
return b''.join(result)#
I am not master of python , modified this now can run under python3 ,
webkit_server.py line124:
raise NodeError, "Unselect not allowed."
changed to
raise NodeError("Unselect not allowed.")
the same line 401:
raise NoX11Error("Cannot connect to X. You can try running with xvfb-run.")
the same line 462:
raise NoResponseError("No response received from server.")
the same line 465:
raise InvalidResponseError(self._read_message())
the same line 484:
raise EndOfStreamError("Unexpected end of stream.")
self._port = int(re.search("port: (\d+)", output.decode()).group(1))
line 454
self._sock.send(bytes(arg,'utf-8'))
line 502
self._sock.send(bytes(line + "\n",'utf-8'))#
line 495
c = c.decode('utf-8')#
return b''.join(result)#