Skip to content

python3 support  #15

@a358003542

Description

@a358003542

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.")

  1. line 399
    self._port = int(re.search("port: (\d+)", output.decode()).group(1))
  2. send bytes
    line 454
    self._sock.send(bytes(arg,'utf-8'))

line 502
self._sock.send(bytes(line + "\n",'utf-8'))#

  1. recv decode
    line 495
    c = c.decode('utf-8')#
  2. line 487
    return b''.join(result)#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions