diff --git a/BUILD b/BUILD index b6554eb71ef4eabfa36f127b6d9f6cfc1d5f9069..12313bcfa34aab4a601dfa693a265522b70b1536 100644 --- a/BUILD +++ b/BUILD @@ -855,7 +855,7 @@ grpc_cc_library( "src/core/lib/iomgr/executor/mpmcqueue.h", "src/core/lib/iomgr/executor/threadpool.h", "src/core/lib/iomgr/gethostname.h", - "src/core/lib/iomgr/gevent_util.h", + "src/core/lib/iomgr/python_util.h", "src/core/lib/iomgr/grpc_if_nametoindex.h", "src/core/lib/iomgr/internal_errqueue.h", "src/core/lib/iomgr/iocp_windows.h", diff --git a/src/core/lib/iomgr/gevent_util.h b/src/core/lib/iomgr/python_util.h similarity index 85% rename from src/core/lib/iomgr/gevent_util.h rename to src/core/lib/iomgr/python_util.h index de30543e3a37d7b36a51e728116cafa26a518c0d..42174ab8d86cab3dd0e20d79fa1937f1d454e083 100644 --- a/src/core/lib/iomgr/gevent_util.h +++ b/src/core/lib/iomgr/python_util.h @@ -16,8 +16,8 @@ * */ -#ifndef GRPC_CORE_LIB_IOMGR_GEVENT_UTIL_H -#define GRPC_CORE_LIB_IOMGR_GEVENT_UTIL_H +#ifndef GRPC_CORE_LIB_IOMGR_PYTHON_UTIL_H +#define GRPC_CORE_LIB_IOMGR_PYTHON_UTIL_H #include <grpc/support/port_platform.h> @@ -25,8 +25,8 @@ #include <grpc/status.h> #include "src/core/lib/iomgr/error.h" -// These are only used by the gRPC Python extension for gevent -// support. They are easier to define here (rather than in Cython) +// These are only used by the gRPC Python extensions. +// They are easier to define here (rather than in Cython) // because Cython doesn't handle #defines well. grpc_error* grpc_socket_error(char* error) { diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/iomgr.pxd.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/iomgr.pxd.pxi index 2f00bab3c0a5520572d7c695c5900d13c8ec7424..11ac401bfe44c3383e3120ae987fb3d47ed6557d 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/iomgr.pxd.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/iomgr.pxd.pxi @@ -23,7 +23,7 @@ cdef extern from "src/core/lib/iomgr/error.h": # TODO(https://github.com/grpc/grpc/issues/20135) Change the filename # for something more meaningful. -cdef extern from "src/core/lib/iomgr/gevent_util.h": +cdef extern from "src/core/lib/iomgr/python_util.h": grpc_error* grpc_socket_error(char* error) char* grpc_slice_buffer_start(grpc_slice_buffer* buffer, int i) int grpc_slice_buffer_length(grpc_slice_buffer* buffer, int i)