You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/12/08 22:54:03 UTC
[37/50] tinkerpop git commit: Fix calling of non-existing methods
Fix calling of non-existing methods
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/b4c42e91
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/b4c42e91
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/b4c42e91
Branch: refs/heads/TINKERPOP-1564
Commit: b4c42e91f8eacbfccae05786d6ebe096a1bc0a68
Parents: 53e932b
Author: Florian Hockmann <fh...@florian-hockmann.de>
Authored: Wed Nov 30 21:08:05 2016 +0100
Committer: Florian Hockmann <fh...@florian-hockmann.de>
Committed: Fri Dec 2 17:02:35 2016 +0100
----------------------------------------------------------------------
.../gremlin/python/GraphTraversalSourceGenerator.groovy | 3 ++-
.../jython/gremlin_python/process/graph_traversal.py | 11 -----------
2 files changed, 2 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/b4c42e91/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/GraphTraversalSourceGenerator.groovy
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/GraphTraversalSourceGenerator.groovy b/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/GraphTraversalSourceGenerator.groovy
index 0d36581..1ffe575 100644
--- a/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/GraphTraversalSourceGenerator.groovy
+++ b/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/GraphTraversalSourceGenerator.groovy
@@ -159,6 +159,7 @@ under the License.
__.class.getMethods().
findAll { GraphTraversal.class.equals(it.returnType) }.
findAll { Modifier.isStatic(it.getModifiers()) }.
+ findAll { !it.name.equals("__") && !it.name.equals("start") }.
collect { SymbolHelper.toPython(it.name) }.
unique().
sort { a, b -> a <=> b }.
@@ -174,7 +175,7 @@ under the License.
__.class.getMethods().
findAll { GraphTraversal.class.equals(it.returnType) }.
findAll { Modifier.isStatic(it.getModifiers()) }.
- findAll { !it.name.equals("__") }.
+ findAll { !it.name.equals("__") && !it.name.equals("start") }.
collect { SymbolHelper.toPython(it.name) }.
unique().
sort { a, b -> a <=> b }.
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/b4c42e91/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 ceb4cb4..3c1a65d 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
@@ -395,9 +395,6 @@ class __(object):
def V(*args):
return GraphTraversal(None, None, Bytecode()).V(*args)
@staticmethod
- def __(*args):
- return GraphTraversal(None, None, Bytecode()).__(*args)
- @staticmethod
def addE(*args):
return GraphTraversal(None, None, Bytecode()).addE(*args)
@staticmethod
@@ -617,9 +614,6 @@ class __(object):
def simplePath(*args):
return GraphTraversal(None, None, Bytecode()).simplePath(*args)
@staticmethod
- def start(*args):
- return GraphTraversal(None, None, Bytecode()).start(*args)
- @staticmethod
def store(*args):
return GraphTraversal(None, None, Bytecode()).store(*args)
@staticmethod
@@ -1042,11 +1036,6 @@ def simplePath(*args):
statics.add_static('simplePath', simplePath)
-def start(*args):
- return __.start(*args)
-
-statics.add_static('start', start)
-
def store(*args):
return __.store(*args)