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/01/24 14:54:41 UTC

[40/44] 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/7c3b6552
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/7c3b6552
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/7c3b6552

Branch: refs/heads/TINKERPOP-1857
Commit: 7c3b6552ec0493c19ab57aa07130faa4ab59768e
Parents: 1a38fda
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Dec 28 11:25:06 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Jan 24 09:46:06 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/7c3b6552/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