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 2019/09/04 13:22:45 UTC

[tinkerpop] 35/40: Rename python function to use underscore

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 41aed9998b3831effd44d56c1a7e87594c672ddd
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Mon Aug 19 11:57:39 2019 -0400

    Rename python function to use underscore
---
 .../src/main/jython/gremlin_python/structure/io/graphbinaryV1.py      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphbinaryV1.py b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphbinaryV1.py
index 5803f30..e37ad8e3 100644
--- a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphbinaryV1.py
+++ b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphbinaryV1.py
@@ -195,7 +195,7 @@ class _GraphBinaryTypeIO(object):
         return struct.unpack(">i", buff.read(4))[0]
 
     @classmethod
-    def unmangleKeyword(cls, symbol):
+    def unmangle_keyword(cls, symbol):
         return cls.symbolMap.get(symbol, symbol)
 
     @classmethod
@@ -572,7 +572,7 @@ class _EnumIO(_GraphBinaryTypeIO):
     @classmethod
     def dictify(cls, obj, writer, as_value=False, nullable=True):
         ba = bytearray()
-        ba.extend(StringIO.dictify(cls.unmangleKeyword(str(obj.name)), writer))
+        ba.extend(StringIO.dictify(cls.unmangle_keyword(str(obj.name)), writer))
         return cls.as_bytes(cls.graphbinary_type, as_value, nullable, ba)
 
     @classmethod