|
|
@ -15,8 +15,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
cimport cpython |
|
|
|
cimport cpython |
|
|
|
|
|
|
|
|
|
|
|
import os.path |
|
|
|
import logging |
|
|
|
|
|
|
|
import os |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
|
|
|
|
import threading |
|
|
|
|
|
|
|
import time |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import grpc |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
import asyncio |
|
|
|
import asyncio |
|
|
|
except ImportError: |
|
|
|
except ImportError: |
|
|
@ -25,6 +31,9 @@ except ImportError: |
|
|
|
# Asyncio package is not available we just skip it. |
|
|
|
# Asyncio package is not available we just skip it. |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The only copy of Python logger for the Cython extension |
|
|
|
|
|
|
|
_LOGGER = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
|
|
|
# TODO(atash): figure out why the coverage tool gets confused about the Cython |
|
|
|
# TODO(atash): figure out why the coverage tool gets confused about the Cython |
|
|
|
# coverage plugin when the following files don't have a '.pxi' suffix. |
|
|
|
# coverage plugin when the following files don't have a '.pxi' suffix. |
|
|
|
include "_cygrpc/grpc_string.pyx.pxi" |
|
|
|
include "_cygrpc/grpc_string.pyx.pxi" |
|
|
|