You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by da...@apache.org on 2017/05/08 20:50:43 UTC

tinkerpop git commit: changed property to function for example consistency

Repository: tinkerpop
Updated Branches:
  refs/heads/gremlin_python_dsl 90df40df1 -> 3f92e413f


changed property to function for example consistency


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

Branch: refs/heads/gremlin_python_dsl
Commit: 3f92e413fceacd22757d6d26a03796961ed2aa0c
Parents: 90df40d
Author: davebshow <da...@gmail.com>
Authored: Mon May 8 16:50:32 2017 -0400
Committer: davebshow <da...@gmail.com>
Committed: Mon May 8 16:50:32 2017 -0400

----------------------------------------------------------------------
 .../gremlin_python/process/graph_traversal.py    | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3f92e413/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py b/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
index fc8df6b..fbe8a97 100644
--- a/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
+++ b/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
@@ -36,41 +36,40 @@ class GraphTraversalSource(object):
     self.graph_traversal = GraphTraversal
   def __repr__(self):
     return "graphtraversalsource[" + str(self.graph) + "]"
-  @property
-  def graph_traversal_source(self):
+  def get_graph_traversal_source(self):
     return self.__class__(self.graph, TraversalStrategies(self.traversal_strategies), Bytecode(self.bytecode))
   def get_graph_traversal(self):
     return self.graph_traversal(self.graph, self.traversal_strategies, Bytecode(self.bytecode))
   def withBindings(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withBindings", *args)
     return source
   def withBulk(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withBulk", *args)
     return source
   def withPath(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withPath", *args)
     return source
   def withSack(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withSack", *args)
     return source
   def withSideEffect(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withSideEffect", *args)
     return source
   def withStrategies(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withStrategies", *args)
     return source
   def withoutStrategies(self, *args):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.bytecode.add_source("withoutStrategies", *args)
     return source
   def withRemote(self, remote_connection):
-    source = self.graph_traversal_source
+    source = self.get_graph_traversal_source()
     source.traversal_strategies.add_strategies([RemoteStrategy(remote_connection)])
     return source
   def withComputer(self,graph_computer=None, workers=None, result=None, persist=None, vertices=None, edges=None, configuration=None):