You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2018/02/20 19:07:10 UTC
[09/26] tinkerpop git commit: TINKERPOP-1857 Python GLV tests were
not string-ing IDs
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/e96a2a60
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/e96a2a60
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/e96a2a60
Branch: refs/heads/tp32
Commit: e96a2a60e2038d2049215c33a83a8623a9e399c6
Parents: a1d0403
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Dec 28 11:25:06 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Feb 14 15:34:09 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/e96a2a60/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