Fix python examples

pull/25045/head
Esun Kim 4 years ago
parent e7afadc255
commit e0ebe46ad3
  1. 4
      examples/python/compression/client.py
  2. 4
      examples/python/compression/server.py
  3. 4
      examples/python/debug/debug_server.py
  4. 4
      examples/python/debug/send_message.py
  5. 4
      examples/python/errors/client.py
  6. 4
      examples/python/errors/server.py
  7. 2
      examples/python/errors/test/_error_handling_example_test.py
  8. 4
      examples/python/wait_for_ready/wait_for_ready_example.py

@ -21,8 +21,8 @@ import argparse
import logging
import grpc
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
_DESCRIPTION = 'A client capable of compression.'
_COMPRESSION_OPTIONS = {

@ -23,8 +23,8 @@ import logging
import threading
import grpc
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
_DESCRIPTION = 'A server capable of compression.'
_COMPRESSION_OPTIONS = {

@ -25,8 +25,8 @@ import random
import grpc
from grpc_channelz.v1 import channelz
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
_LOGGER = logging.getLogger(__name__)
_LOGGER.setLevel(logging.INFO)

@ -20,8 +20,8 @@ from __future__ import print_function
import logging
import argparse
import grpc
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
def process(stub, request):

@ -20,8 +20,8 @@ import grpc
from grpc_status import rpc_status
from google.rpc import error_details_pb2
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
_LOGGER = logging.getLogger(__name__)

@ -23,8 +23,8 @@ from grpc_status import rpc_status
from google.protobuf import any_pb2
from google.rpc import code_pb2, status_pb2, error_details_pb2
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
def create_greet_limit_exceed_error_status(name):

@ -26,7 +26,7 @@ import logging
import grpc
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2_grpc
from examples.python.errors import client as error_handling_client
from examples.python.errors import server as error_handling_server

@ -22,8 +22,8 @@ import threading
import grpc
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
_LOGGER = logging.getLogger(__name__)
_LOGGER.setLevel(logging.INFO)

Loading…
Cancel
Save