Skip to content
Snippets Groups Projects
Commit 693949ba authored by Davies Liu's avatar Davies Liu Committed by Davies Liu
Browse files

[SPARK-8976] [PYSPARK] fix open mode in python3

This bug only happen on Python 3 and Windows.

I tested this manually with python 3 and disable python daemon, no unit test yet.

Author: Davies Liu <davies@databricks.com>

Closes #8181 from davies/open_mode.
parent 6c5858bc
No related branches found
No related tags found
No related merge requests found
...@@ -146,5 +146,5 @@ if __name__ == '__main__': ...@@ -146,5 +146,5 @@ if __name__ == '__main__':
java_port = int(sys.stdin.readline()) java_port = int(sys.stdin.readline())
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("127.0.0.1", java_port)) sock.connect(("127.0.0.1", java_port))
sock_file = sock.makefile("a+", 65536) sock_file = sock.makefile("rwb", 65536)
main(sock_file, sock_file) main(sock_file, sock_file)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment