Restore 27 compatibility

pull/22662/head
Lidi Zheng 5 years ago
parent b8691f9669
commit e819e03a83
  1. 4
      src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py

@ -15,7 +15,6 @@
import sys
import grpc
from grpc.experimental import aio as grpc_aio
from grpc_reflection.v1alpha import reflection_pb2 as _reflection_pb2
from grpc_reflection.v1alpha import reflection_pb2_grpc as _reflection_pb2_grpc
@ -57,7 +56,8 @@ class ReflectionServicer(BaseReflectionServicer):
if sys.version_info[0] >= 3 and sys.version_info[1] >= 6:
# Exposes AsyncReflectionServicer as public API.
from . import _async as aio # pylint: disable=unused-import
from . import _async as aio
from grpc.experimental import aio as grpc_aio
def enable_server_reflection(service_names, server, pool=None):
"""Enables server reflection on a server.

Loading…
Cancel
Save