[driver_remote] Encode Bytecode as a dict, not a string
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/0b74ea40 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/0b74ea40 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/0b74ea40 Branch: refs/heads/TINKERPOP-1490 Commit: 0b74ea40aacaab519357626fa4c2c580ffe6b148 Parents: 595cf3b Author: Branden Moore <[email protected]> Authored: Wed Dec 7 12:53:38 2016 -0700 Committer: Branden Moore <[email protected]> Committed: Wed Dec 7 12:53:38 2016 -0700 ---------------------------------------------------------------------- .../main/jython/gremlin_python/driver/driver_remote_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/0b74ea40/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py ---------------------------------------------------------------------- diff --git a/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py b/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py index eab06f1..d975f60 100644 --- a/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py +++ b/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py @@ -66,7 +66,7 @@ class DriverRemoteConnection(RemoteConnection): "op": "bytecode", "processor": "traversal", "args": { - "gremlin": self._graphson_writer.writeObject(bytecode), + "gremlin": self._graphson_writer.toDict(bytecode), "aliases": {"g": self.traversal_source} } }
