aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_reflection
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2017-03-21 19:23:58 +0000
committerGravatar Mehrdad Afshari <mmx@google.com>2017-03-23 09:18:48 -0700
commit7472e13095b15f65654f2e463a10bfbf616c2d72 (patch)
treec3925ba349996e1239f6e28a7a49bdc4b130c67a /src/python/grpcio_reflection
parent7be69fcc1c5bf3b87a88749a33c9aa42f6a33dba (diff)
Sort service_names returned by python reflection
While not strictly required by the protocol, it will make testing easier.
Diffstat (limited to 'src/python/grpcio_reflection')
-rw-r--r--src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py b/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
index 4e4b10fa97..c8ad9668ac 100644
--- a/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
+++ b/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
@@ -65,7 +65,7 @@ class ReflectionServicer(reflection_pb2.ServerReflectionServicer):
Args:
service_names: Iterable of fully-qualified service names available.
"""
- self._service_names = list(service_names)
+ self._service_names = tuple(sorted(service_names))
self._pool = _POOL if pool is None else pool
def _file_by_filename(self, filename):