From 4a7e105f7e822a6ff6cc4f4dbae3b4f8a81076f5 Mon Sep 17 00:00:00 2001 From: Vladimir Magamedov Date: Tue, 26 Nov 2019 16:56:09 +0200 Subject: [PATCH] Renamed "compat" module into "_compat" --- grpclib/{compat.py => _compat.py} | 0 grpclib/server.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename grpclib/{compat.py => _compat.py} (100%) diff --git a/grpclib/compat.py b/grpclib/_compat.py similarity index 100% rename from grpclib/compat.py rename to grpclib/_compat.py diff --git a/grpclib/server.py b/grpclib/server.py index f5d550f..09009e7 100644 --- a/grpclib/server.py +++ b/grpclib/server.py @@ -15,7 +15,6 @@ from multidict import MultiDict from .utils import DeadlineWrapper, Wrapper from .const import Status, Cardinality -from .compat import nullcontext from .config import Configuration from .stream import send_message, recv_message, StreamIterator from .stream import _RecvType, _SendType @@ -29,6 +28,7 @@ from .encoding.base import GRPC_CONTENT_TYPE, CodecBase, StatusDetailsCodecBase from .encoding.proto import ProtoCodec, ProtoStatusDetailsCodec from .encoding.proto import _googleapis_available +from ._compat import nullcontext from ._registry import servers as _servers if TYPE_CHECKING: