Skip to content

Commit

Permalink
Polish documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lidizheng committed Apr 23, 2020
1 parent 0f9b66f commit bba853d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions google/api_core/gapic_v1/__init__.py
Expand Up @@ -19,8 +19,8 @@
from google.api_core.gapic_v1 import method
from google.api_core.gapic_v1 import routing_header

__all__ = ["client_info", "config", "method", "routing_header"]

if sys.version_info[0] >= 3 and sys.version_info[1] >= 6:
from google.api_core.gapic_v1 import config_async # noqa: F401
__all__ = ["client_info", "config", "config_async", "method", "routing_header"]
else:
__all__ = ["client_info", "config", "method", "routing_header"] # pragma: NO COVER
__all__.append("config_async")
8 changes: 4 additions & 4 deletions google/api_core/retry_async.py
@@ -1,4 +1,4 @@
# Copyright 2017 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,7 @@
.. code-block:: python
@retry.AsyncRetry()
@retry_async.AsyncRetry()
async def call_flaky_rpc():
return await client.flaky_rpc()
Expand All @@ -35,7 +35,7 @@ async def call_flaky_rpc():
.. code-block:: python
@retry.AsyncRetry(predicate=if_exception_type(exceptions.NotFound))
@retry_async.AsyncRetry(predicate=retry_async.if_exception_type(exceptions.NotFound))
async def check_if_exists():
return await client.does_thing_exist()
Expand All @@ -46,7 +46,7 @@ async def check_if_exists():
.. code-block:: python
my_retry = retry.AsyncRetry(deadline=60)
my_retry = retry_async.AsyncRetry(deadline=60)
result = await client.some_method(retry=my_retry)
"""
Expand Down

0 comments on commit bba853d

Please sign in to comment.