Repository: incubator-tinkerpop Updated Branches: refs/heads/master a5c65fceb -> ff12c59fe
fixed a variable name bug in python gremlin language variant tutorial. indices -> index. CTR. Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/ff12c59f Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/ff12c59f Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/ff12c59f Branch: refs/heads/master Commit: ff12c59fe6d57e171707e855f935ddbf19fa59ec Parents: a5c65fc Author: Marko A. Rodriguez <okramma...@gmail.com> Authored: Tue May 31 09:18:42 2016 -0600 Committer: Marko A. Rodriguez <okramma...@gmail.com> Committed: Tue May 31 09:18:42 2016 -0600 ---------------------------------------------------------------------- docs/static/resources/gremlin-jython.py | 2 +- docs/static/resources/gremlin-python.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/ff12c59f/docs/static/resources/gremlin-jython.py ---------------------------------------------------------------------- diff --git a/docs/static/resources/gremlin-jython.py b/docs/static/resources/gremlin-jython.py index 41d31ee..e52e234 100644 --- a/docs/static/resources/gremlin-jython.py +++ b/docs/static/resources/gremlin-jython.py @@ -91,7 +91,7 @@ class JythonGraphTraversal(object): return self.traversal.toString() def __getitem__(self,index): if type(index) is int: - self.traversal = self.traversal.range(indices,indices+1) + self.traversal = self.traversal.range(index,index+1) elif type(index) is slice: self.traversal = self.traversal.range(index.start,index.stop) else: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/ff12c59f/docs/static/resources/gremlin-python.py ---------------------------------------------------------------------- diff --git a/docs/static/resources/gremlin-python.py b/docs/static/resources/gremlin-python.py index 4c57e01..6301bc9 100644 --- a/docs/static/resources/gremlin-python.py +++ b/docs/static/resources/gremlin-python.py @@ -118,7 +118,7 @@ class PythonGraphTraversal(object): return self.traversalString; def __getitem__(self,index): if type(index) is int: - return self.range(indices,indices+1) + return self.range(index,index+1) elif type(index) is slice: return self.range(index.start,index.stop) else: