Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1747 83206a210 -> e95096067


store defaults as classes


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

Branch: refs/heads/TINKERPOP-1747
Commit: e95096067fbcfefd94a5174389251f11efcfad1d
Parents: 83206a2
Author: davebshow <davebs...@gmail.com>
Authored: Wed Aug 9 16:42:27 2017 -0400
Committer: davebshow <davebs...@gmail.com>
Committed: Wed Aug 9 16:42:27 2017 -0400

----------------------------------------------------------------------
 .../src/main/jython/gremlin_python/driver/serializer.py      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e9509606/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py 
b/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
index 679a7ce..007e162 100644
--- a/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
+++ b/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
@@ -89,8 +89,8 @@ class GraphSONMessageSerializer(object):
     """
 
     # KEEP TRACK OF CURRENT DEFAULTS
-    DEFAULT_READER = graphsonV3d0.GraphSONReader()
-    DEFAULT_WRITER = graphsonV3d0.GraphSONWriter()
+    DEFAULT_READER_CLASS = graphsonV3d0.GraphSONReader
+    DEFAULT_WRITER_CLASS = graphsonV3d0.GraphSONWriter
     DEFAULT_VERSION = b"application/vnd.gremlin-v3.0+json"
 
     def __init__(self, reader=None, writer=None, version=None):
@@ -98,10 +98,10 @@ class GraphSONMessageSerializer(object):
             version = self.DEFAULT_VERSION
         self._version = version
         if not reader:
-            reader = self.DEFAULT_READER
+            reader = self.DEFAULT_READER_CLASS()
         self._graphson_reader = reader
         if not writer:
-            writer = self.DEFAULT_WRITER
+            writer = self.DEFAULT_WRITER_CLASS()
         self.standard = Standard(writer)
         self.traversal = Traversal(writer)
 

Reply via email to