Add TODOs for prefix stripping

pull/19822/head
Richard Belleville 5 years ago
parent 5fd25f3c7c
commit 3db8828876
  1. 1
      examples/python/debug/get_stats.py
  2. 1
      src/python/grpcio_channelz/grpc_channelz/v1/channelz.py
  3. 2
      src/python/grpcio_health_checking/grpc_health/v1/health.py
  4. 1
      src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
  5. 2
      src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py
  6. 2
      src/python/grpcio_tests/tests/health_check/_health_servicer_test.py
  7. 2
      src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py

@ -21,6 +21,7 @@ import logging
import argparse import argparse
import grpc import grpc
# TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2 from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2
from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2_grpc from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2_grpc

@ -16,6 +16,7 @@
import grpc import grpc
from grpc._cython import cygrpc from grpc._cython import cygrpc
# TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2 as _channelz_pb2 from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2 as _channelz_pb2
from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2_grpc as _channelz_pb2_grpc from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2_grpc as _channelz_pb2_grpc

@ -18,7 +18,7 @@ import threading
import grpc import grpc
# Import using an absolute path to ensure no duplicate loaded modules. # TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_health_checking.grpc_health.v1 import health_pb2 as _health_pb2 from src.python.grpcio_health_checking.grpc_health.v1 import health_pb2 as _health_pb2
from src.python.grpcio_health_checking.grpc_health.v1 import health_pb2_grpc as _health_pb2_grpc from src.python.grpcio_health_checking.grpc_health.v1 import health_pb2_grpc as _health_pb2_grpc

@ -17,6 +17,7 @@ import grpc
from google.protobuf import descriptor_pb2 from google.protobuf import descriptor_pb2
from google.protobuf import descriptor_pool from google.protobuf import descriptor_pool
# TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_reflection.grpc_reflection.v1alpha \ from src.python.grpcio_reflection.grpc_reflection.v1alpha \
import reflection_pb2 as _reflection_pb2 import reflection_pb2 as _reflection_pb2

@ -18,6 +18,8 @@ import unittest
from concurrent import futures from concurrent import futures
import grpc import grpc
# TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_channelz.grpc_channelz.v1 import channelz from src.python.grpcio_channelz.grpc_channelz.v1 import channelz
from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2 from src.python.grpcio_channelz.grpc_channelz.v1 import channelz_pb2

@ -20,7 +20,7 @@ import unittest
import grpc import grpc
# Import using an absolute path to ensure no duplicate loaded modules. # TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_health_checking.grpc_health.v1 import health from src.python.grpcio_health_checking.grpc_health.v1 import health
from src.python.grpcio_health_checking.grpc_health.v1 import health_pb2 from src.python.grpcio_health_checking.grpc_health.v1 import health_pb2

@ -16,6 +16,8 @@
import unittest import unittest
import grpc import grpc
# TODO(https://github.com/grpc/grpc/issues/19863): Remove.
try: try:
from src.python.grpcio_reflection.grpc_reflection.v1alpha import reflection from src.python.grpcio_reflection.grpc_reflection.v1alpha import reflection
from src.python.grpcio_reflection.grpc_reflection.v1alpha import reflection_pb2 from src.python.grpcio_reflection.grpc_reflection.v1alpha import reflection_pb2

Loading…
Cancel
Save