TINKERPOP-1784 Deleted some dead code
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1926dc45 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1926dc45 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1926dc45 Branch: refs/heads/TINKERPOP-1784 Commit: 1926dc45089ba441940cc4117ae668a7b7cf69bc Parents: 9a15c43 Author: Stephen Mallette <sp...@genoprime.com> Authored: Thu Sep 28 15:30:54 2017 -0400 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Tue Oct 3 14:19:52 2017 -0400 ---------------------------------------------------------------------- .../src/main/jython/radish/feature_steps.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1926dc45/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 2db5922..e3b82c3 100644 --- a/gremlin-python/src/main/jython/radish/feature_steps.py +++ b/gremlin-python/src/main/jython/radish/feature_steps.py @@ -76,12 +76,12 @@ def assert_result(step, characterized_as): def __convert(val, ctx): - if isinstance(val, dict): # convert dictionary keys/values + if isinstance(val, dict): # convert dictionary keys/values n = {} for key, value in val.items(): n[__convert(key, ctx)] = __convert(value, ctx) return n - elif isinstance(val, unicode): + elif isinstance(val, unicode): # stupid unicode/string nonsense in py 2/x return __convert(val.encode('utf-8'), ctx) elif isinstance(val, str) and re.match("^l\[.*\]$", val): # parse list return list(map((lambda x: __convert(x, ctx)), val[2:-1].split(","))) @@ -100,16 +100,6 @@ def __convert(val, ctx): else: return val -# -# def __ordered_assertion(data, result, ctx): -# # results from traversal should have the same number of entries as the feature data table -# assert_that(len(result), equal_to(len(data))) -# -# # assert the results in order they are expected in the data from the features file -# for ix, line in enumerate(data): -# assert_that(result[ix], equal_to(__convert(line[0], ctx))) -# - def __table_assertion(data, result, ctx, ordered): # results from traversal should have the same number of entries as the feature data table