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/08/09 22:09:00 UTC
[3/3] tinkerpop git commit: explicit relative imports in generated
python code
explicit relative imports in generated python code
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/ed984aa1
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/ed984aa1
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/ed984aa1
Branch: refs/heads/TINKERPOP-1278
Commit: ed984aa127e02ba173455bfa14e17cb78abaf89a
Parents: 83ffaf4
Author: Leifur Halldor Asgeirsson <la...@zerofail.com>
Authored: Tue Aug 9 17:27:22 2016 -0400
Committer: Leifur Halldor Asgeirsson <la...@zerofail.com>
Committed: Tue Aug 9 17:27:22 2016 -0400
----------------------------------------------------------------------
.../gremlin/python/GraphTraversalSourceGenerator.groovy | 6 +++---
.../tinkerpop/gremlin/python/TraversalSourceGenerator.groovy | 2 +-
.../src/main/jython/gremlin_python/process/graph_traversal.py | 6 +++---
.../src/main/jython/gremlin_python/process/traversal.py | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ed984aa1/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 61b9d57..75f8beb 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
@@ -56,9 +56,9 @@ specific language governing permissions and limitations
under the License.
'''
""")
- pythonClass.append("from traversal import Traversal\n")
- pythonClass.append("from traversal import Bytecode\n")
- pythonClass.append("from gremlin_python import statics\n\n")
+ pythonClass.append("from .traversal import Traversal\n")
+ pythonClass.append("from .traversal import Bytecode\n")
+ pythonClass.append("from .. import statics\n\n")
//////////////////////////
// GraphTraversalSource //
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ed984aa1/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/TraversalSourceGenerator.groovy
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/TraversalSourceGenerator.groovy b/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/TraversalSourceGenerator.groovy
index 59d09a4..12eeed5 100644
--- a/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/TraversalSourceGenerator.groovy
+++ b/gremlin-python/src/main/groovy/org/apache/tinkerpop/gremlin/python/TraversalSourceGenerator.groovy
@@ -55,7 +55,7 @@ under the License.
""")
pythonClass.append("from abc import abstractmethod\n")
pythonClass.append("from aenum import Enum\n")
- pythonClass.append("from gremlin_python import statics\n")
+ pythonClass.append("from .. import statics\n")
pythonClass.append("""
class Traversal(object):
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ed984aa1/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 9803139..6290065 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
@@ -16,9 +16,9 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
'''
-from traversal import Traversal
-from traversal import Bytecode
-from gremlin_python import statics
+from .traversal import Traversal
+from .traversal import Bytecode
+from .. import statics
class GraphTraversalSource(object):
def __init__(self, graph, traversal_strategies, bytecode=None):
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ed984aa1/gremlin-python/src/main/jython/gremlin_python/process/traversal.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/process/traversal.py b/gremlin-python/src/main/jython/gremlin_python/process/traversal.py
index 3703e5d..9ae5afe 100644
--- a/gremlin-python/src/main/jython/gremlin_python/process/traversal.py
+++ b/gremlin-python/src/main/jython/gremlin_python/process/traversal.py
@@ -18,7 +18,7 @@ under the License.
'''
from abc import abstractmethod
from aenum import Enum
-from gremlin_python import statics
+from .. import statics
class Traversal(object):
def __init__(self, graph, traversal_strategies, bytecode):