Merge pull request #18414 from evanj/utf8-encodable

python docs: details are UTF-8 encodable, not just ASCII.
pull/18406/head^2
Lidi Zheng 6 years ago committed by GitHub
commit 0c70b0f008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/python/grpcio/grpc/__init__.py

@ -282,7 +282,7 @@ class Status(six.with_metaclass(abc.ABCMeta)):
Attributes:
code: A StatusCode object to be sent to the client.
details: An ASCII-encodable string to be sent to the client upon
details: A UTF-8-encodable string to be sent to the client upon
termination of the RPC.
trailing_metadata: The trailing :term:`metadata` in the RPC.
"""
@ -1131,7 +1131,7 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
Args:
code: A StatusCode object to be sent to the client.
It must not be StatusCode.OK.
details: An ASCII-encodable string to be sent to the client upon
details: A UTF-8-encodable string to be sent to the client upon
termination of the RPC.
Raises:
@ -1179,7 +1179,7 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
no details to transmit.
Args:
details: An ASCII-encodable string to be sent to the client upon
details: A UTF-8-encodable string to be sent to the client upon
termination of the RPC.
"""
raise NotImplementedError()

Loading…
Cancel
Save