TINKERPOP-1857 Python GLV tests were not string-ing IDs

Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/839b0e82
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/839b0e82
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/839b0e82

Branch: refs/heads/TINKERPOP-1857
Commit: 839b0e82cdb53398625fa1ad8aa79f55519d8f78
Parents: 9810e27
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Dec 28 11:25:06 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Feb 9 14:30:58 2018 -0500

----------------------------------------------------------------------
 gremlin-python/src/main/jython/radish/feature_steps.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/839b0e82/gremlin-python/src/main/jython/radish/feature_steps.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/radish/feature_steps.py 
b/gremlin-python/src/main/jython/radish/feature_steps.py
index e247b25..d5d3560 100644
--- a/gremlin-python/src/main/jython/radish/feature_steps.py
+++ b/gremlin-python/src/main/jython/radish/feature_steps.py
@@ -155,13 +155,13 @@ def _convert(val, ctx):
     elif isinstance(val, str) and re.match("^v\[.*\]\.id$", val):       # 
parse vertex id
         return __find_cached_element(ctx, graph_name, val[2:-4], "v").id
     elif isinstance(val, str) and re.match("^v\[.*\]\.sid$", val):      # 
parse vertex id as string
-        return __find_cached_element(ctx, graph_name, val[2:-5], "v").id
+        return str(__find_cached_element(ctx, graph_name, val[2:-5], "v").id)
     elif isinstance(val, str) and re.match("^v\[.*\]$", val):           # 
parse vertex
         return __find_cached_element(ctx, graph_name, val[2:-1], "v")
     elif isinstance(val, str) and re.match("^e\[.*\]\.id$", val):       # 
parse edge id
         return __find_cached_element(ctx, graph_name, val[2:-4], "e").id
     elif isinstance(val, str) and re.match("^e\[.*\]\.sid$", val):      # 
parse edge id as string
-        return __find_cached_element(ctx, graph_name, val[2:-5], "e").id
+        return str(__find_cached_element(ctx, graph_name, val[2:-5], "e").id)
     elif isinstance(val, str) and re.match("^e\[.*\]$", val):           # 
parse edge
         return __find_cached_element(ctx, graph_name, val[2:-1], "e")
     elif isinstance(val, str) and re.match("^m\[.*\]$", val):           # 
parse json as a map

Reply via email to