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 2022/07/07 21:20:04 UTC

[tinkerpop] 01/03: TINKERPOP-2763 Fixed return in submitAsync of python driver CTR

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

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

commit 29346f53b8955326964c54b5ffed04698a16c797
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Thu Jul 7 17:18:54 2022 -0400

    TINKERPOP-2763 Fixed return in submitAsync of python driver CTR
---
 CHANGELOG.asciidoc                                             | 1 +
 gremlin-python/src/main/python/gremlin_python/driver/client.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 4c1a25fc07..373b89dca1 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -34,6 +34,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
 * Improved startup time by removing unnecessary DNS lookup.
 * Bumped to logback 1.2.9.
 * Bumped to netty 4.1.77.
+* Fixed bug in `submitAsync()` in gremlin-python where the deprecated version was not returning its result.
 * Added missing `ResponseStatusCodeEnum` entries for 403, 429, 497, and 596 for .NET.
 * Added GraphBinary support in gremlin-python for short, bigdecimal and biginteger.
 * Fixed bug in `PartitionStrategy` where the use of `AbstractLambdaTraversal` caused an unexpected exception.
diff --git a/gremlin-python/src/main/python/gremlin_python/driver/client.py b/gremlin-python/src/main/python/gremlin_python/driver/client.py
index 7c4d02a098..b33963ed77 100644
--- a/gremlin-python/src/main/python/gremlin_python/driver/client.py
+++ b/gremlin-python/src/main/python/gremlin_python/driver/client.py
@@ -150,7 +150,7 @@ class Client:
             "gremlin_python.driver.client.Client.submitAsync will be replaced by "
             "gremlin_python.driver.client.Client.submit_async.",
             DeprecationWarning)
-        self.submit_async(message, bindings, request_options)
+        return self.submit_async(message, bindings, request_options)
 
     def submit_async(self, message, bindings=None, request_options=None):
         logging.debug("message '%s'", str(message))