You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2018/09/18 16:48:25 UTC

[07/50] [abbrv] tinkerpop git commit: TINKERPOP-1769 Removed "empty" from string representation of Graph

TINKERPOP-1769 Removed "empty" from string representation of Graph

EmptyGraph as a whole bugs me as a means for connecting to "remote" graph systems. While I don't know exactly how it will change to be better right now, I don't think that this change will hurt anything in the mean time. CTR


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

Branch: refs/heads/TINKERPOP-1913
Commit: 7a814e196519775079005cdf9bc73ec934302891
Parents: b15a9c3
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Sep 7 12:07:50 2018 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Sep 7 12:07:50 2018 -0400

----------------------------------------------------------------------
 .../src/main/javascript/gremlin-javascript/lib/structure/graph.js  | 2 +-
 gremlin-python/src/main/jython/gremlin_python/structure/graph.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7a814e19/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.js
----------------------------------------------------------------------
diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.js
index f6553fa..ac571ba 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.js
@@ -35,7 +35,7 @@ class Graph {
   }
 
   toString() {
-    return 'graph[empty]';
+    return 'graph[]';
   }
 }
 

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7a814e19/gremlin-python/src/main/jython/gremlin_python/structure/graph.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/structure/graph.py b/gremlin-python/src/main/jython/gremlin_python/structure/graph.py
index 3df0cd1..cbe5745 100644
--- a/gremlin-python/src/main/jython/gremlin_python/structure/graph.py
+++ b/gremlin-python/src/main/jython/gremlin_python/structure/graph.py
@@ -34,7 +34,7 @@ class Graph(object):
         return traversal_source_class(self, TraversalStrategies.global_cache[self.__class__])
 
     def __repr__(self):
-        return "graph[empty]"
+        return "graph[]"
 
 
 class Element(object):