This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch TINKERPOP-2279
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit c82a4a6c43ea3dc046d7ddf7dbd41ea9a91be97f
Author: Stephen Mallette <[email protected]>
AuthorDate: Mon Aug 12 18:31:52 2019 -0400

    Added fqcn to TraversalStrategy in python to allow GraphBinary 
serialization to work properly
---
 gremlin-python/glv/TraversalSource.template                        | 3 ++-
 gremlin-python/src/main/jython/gremlin_python/process/traversal.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gremlin-python/glv/TraversalSource.template 
b/gremlin-python/glv/TraversalSource.template
index 8f776d2..2b021ac 100644
--- a/gremlin-python/glv/TraversalSource.template
+++ b/gremlin-python/glv/TraversalSource.template
@@ -297,7 +297,8 @@ class TraversalStrategies(object):
 
 
 class TraversalStrategy(object):
-    def __init__(self, strategy_name=None, configuration=None):
+    def __init__(self, strategy_name=None, configuration=None, fqcn=None):
+        self.fqcn = fqcn
         self.strategy_name = type(self).__name__ if strategy_name is None else 
strategy_name
         self.configuration = {} if configuration is None else configuration
 
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 5a73702..7253df6 100644
--- a/gremlin-python/src/main/jython/gremlin_python/process/traversal.py
+++ b/gremlin-python/src/main/jython/gremlin_python/process/traversal.py
@@ -582,8 +582,8 @@ class TraversalStrategies(object):
 
 class TraversalStrategy(object):
     def __init__(self, strategy_name=None, configuration=None, fqcn=None):
-        self.strategy_name = type(self).__name__ if strategy_name is None else 
strategy_name
         self.fqcn = fqcn
+        self.strategy_name = type(self).__name__ if strategy_name is None else 
strategy_name
         self.configuration = {} if configuration is None else configuration
 
     def apply(self, traversal):

Reply via email to