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 2020/04/27 11:40:21 UTC

[tinkerpop] 01/03: encode return of mock gephi server with utf-8 for better compatibiilty with python 2/3 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 b258c00ced7592dec718b9f78e4d6e7e8b43e476
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Mon Apr 27 07:38:40 2020 -0400

    encode return of mock gephi server with utf-8 for better compatibiilty with python 2/3 CTR
---
 bin/gephi-mock.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/gephi-mock.py b/bin/gephi-mock.py
index b76b212..85501e6 100755
--- a/bin/gephi-mock.py
+++ b/bin/gephi-mock.py
@@ -28,7 +28,7 @@ class GephiHandler(BaseHTTPRequestHandler):
         self.send_response(200)
         self.send_header('Content-Type', 'text/plain')
         self.end_headers()
-        self.wfile.write("{}")
+        self.wfile.write("{}".encode('utf-8'))
 
     def do_GET(self):
         self.respond()