Skip to content

Commit c333a4c

Browse files
committed
change pragma coverage line
1 parent fe535fd commit c333a4c

File tree

23 files changed

+46
-46
lines changed

23 files changed

+46
-46
lines changed

gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ from .transports.base import {{ service.name }}Transport, DEFAULT_CLIENT_INFO
5353
from .transports.grpc_asyncio import {{ service.grpc_asyncio_transport_name }}
5454
from .client import {{ service.client_name }}
5555

56-
try: # pragma: NO COVER
56+
try:
5757
from google.api_core import client_logging # type: ignore
5858
CLIENT_LOGGING_SUPPORTED = True
59-
except ImportError:
59+
except ImportError: # pragma: NO COVER
6060
CLIENT_LOGGING_SUPPORTED = False
6161

6262
_LOGGER = std_logging.getLogger(__name__)

gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ try:
4040
except AttributeError: # pragma: NO COVER
4141
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
4242

43-
try: # pragma: NO COVER
43+
try:
4444
from google.api_core import client_logging # type: ignore
4545
CLIENT_LOGGING_SUPPORTED = True
46-
except ImportError:
46+
except ImportError: # pragma: NO COVER
4747
CLIENT_LOGGING_SUPPORTED = False
4848

4949
_LOGGER = std_logging.getLogger(__name__)

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ try:
4141
except AttributeError: # pragma: NO COVER
4242
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
4343

44-
try: # pragma: NO COVER
44+
try:
4545
from google.api_core import client_logging # type: ignore
4646
CLIENT_LOGGING_SUPPORTED = True
47-
except ImportError:
47+
except ImportError: # pragma: NO COVER
4848
CLIENT_LOGGING_SUPPORTED = False
4949

5050
_LOGGER = logging.getLogger(__name__)

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest_asyncio.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO
6161

6262
import logging
6363

64-
try: # pragma: NO COVER
64+
try:
6565
from google.api_core import client_logging # type: ignore
6666
CLIENT_LOGGING_SUPPORTED = True
67-
except ImportError:
67+
except ImportError: # pragma: NO COVER
6868
CLIENT_LOGGING_SUPPORTED = False
6969

7070
_LOGGER = logging.getLogger(__name__)

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
from .transports.grpc_asyncio import AssetServiceGrpcAsyncIOTransport
4848
from .client import AssetServiceClient
4949

50-
try: # pragma: NO COVER
50+
try:
5151
from google.api_core import client_logging # type: ignore
5252
CLIENT_LOGGING_SUPPORTED = True
53-
except ImportError:
53+
except ImportError: # pragma: NO COVER
5454
CLIENT_LOGGING_SUPPORTED = False
5555

5656
_LOGGER = std_logging.getLogger(__name__)

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
except AttributeError: # pragma: NO COVER
3838
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
3939

40-
try: # pragma: NO COVER
40+
try:
4141
from google.api_core import client_logging # type: ignore
4242
CLIENT_LOGGING_SUPPORTED = True
43-
except ImportError:
43+
except ImportError: # pragma: NO COVER
4444
CLIENT_LOGGING_SUPPORTED = False
4545

4646
_LOGGER = std_logging.getLogger(__name__)

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
except AttributeError: # pragma: NO COVER
4747
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
4848

49-
try: # pragma: NO COVER
49+
try:
5050
from google.api_core import client_logging # type: ignore
5151
CLIENT_LOGGING_SUPPORTED = True
52-
except ImportError:
52+
except ImportError: # pragma: NO COVER
5353
CLIENT_LOGGING_SUPPORTED = False
5454

5555
_LOGGER = logging.getLogger(__name__)

tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
from .transports.grpc_asyncio import IAMCredentialsGrpcAsyncIOTransport
4141
from .client import IAMCredentialsClient
4242

43-
try: # pragma: NO COVER
43+
try:
4444
from google.api_core import client_logging # type: ignore
4545
CLIENT_LOGGING_SUPPORTED = True
46-
except ImportError:
46+
except ImportError: # pragma: NO COVER
4747
CLIENT_LOGGING_SUPPORTED = False
4848

4949
_LOGGER = std_logging.getLogger(__name__)

tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
except AttributeError: # pragma: NO COVER
3838
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
3939

40-
try: # pragma: NO COVER
40+
try:
4141
from google.api_core import client_logging # type: ignore
4242
CLIENT_LOGGING_SUPPORTED = True
43-
except ImportError:
43+
except ImportError: # pragma: NO COVER
4444
CLIENT_LOGGING_SUPPORTED = False
4545

4646
_LOGGER = std_logging.getLogger(__name__)

tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
except AttributeError: # pragma: NO COVER
4444
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
4545

46-
try: # pragma: NO COVER
46+
try:
4747
from google.api_core import client_logging # type: ignore
4848
CLIENT_LOGGING_SUPPORTED = True
49-
except ImportError:
49+
except ImportError: # pragma: NO COVER
5050
CLIENT_LOGGING_SUPPORTED = False
5151

5252
_LOGGER = logging.getLogger(__name__)

0 commit comments

Comments
 (0)