Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
49d6100
API Core: simplify methods
emar-kar Jul 22, 2019
ddbcb99
Update test_datetime_helpers.py
emar-kar Jul 24, 2019
1cfaf61
Update datetime_helpers.py
emar-kar Jul 25, 2019
59a49b9
Update datetime_helpers.py
emar-kar Jul 26, 2019
7b5dfa6
Merge remote-tracking branch 'upstream/master' into Methods-Combining
emar-kar Jul 26, 2019
0481ad4
Update test_datetime_helpers.py
emar-kar Jul 26, 2019
710978b
Update datetime_helpers.py
emar-kar Jul 26, 2019
70bf8bc
Update datetime_helpers.py
emar-kar Aug 23, 2019
69fef2e
Merge branch 'master' into Methods-Combining
emar-kar Aug 28, 2019
91a1ece
Merge branch 'master' into Methods-Combining
emar-kar Sep 5, 2019
06bee67
update datetime_helpers
emar-kar Sep 5, 2019
873a60d
API Core: simplify methods
emar-kar Jul 22, 2019
796204c
Update test_datetime_helpers.py
emar-kar Jul 24, 2019
0503e92
Update datetime_helpers.py
emar-kar Jul 25, 2019
dc4f896
Update datetime_helpers.py
emar-kar Jul 26, 2019
4bcf651
Update test_datetime_helpers.py
emar-kar Jul 26, 2019
8151cae
Update datetime_helpers.py
emar-kar Jul 26, 2019
447ed3e
Update datetime_helpers.py
emar-kar Aug 23, 2019
1fc8661
update datetime_helpers
emar-kar Sep 5, 2019
93f8883
Merge branch 'Methods-Combining' of https://github.com/q-logic/google…
emar-kar Nov 8, 2019
9dcffee
update comments
emar-kar Nov 8, 2019
bc18ddb
update as requested
emar-kar Nov 8, 2019
fcd3e6a
black
emar-kar Nov 8, 2019
ed1ac2f
flake8 + test fix
emar-kar Nov 8, 2019
3b8f432
remove warning test
emar-kar Nov 8, 2019
c7e5b06
test fix
emar-kar Nov 8, 2019
0951c9a
try flake8 I202 fix
emar-kar Nov 8, 2019
05630fc
remove _nanos method + modified tests
emar-kar Nov 11, 2019
97e8662
flake8 update
emar-kar Nov 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
black
  • Loading branch information
emar-kar committed Nov 8, 2019
commit fcd3e6ae34d2b54c38f87fb15c7582fa71bf3b1f
10 changes: 5 additions & 5 deletions api_core/google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ def __init__(self, access_limit, time_window):

self._time_window = time_window
self._access_limit = access_limit
self._past_entries = collections.deque(maxlen=access_limit) # least recent first
self._past_entries = collections.deque(
maxlen=access_limit
) # least recent first
self._entry_lock = threading.Lock()

def __enter__(self):
Expand All @@ -198,9 +200,7 @@ def __exit__(self, *_):

def __repr__(self):
return "{}(access_limit={}, time_window={})".format(
self.__class__.__name__,
self._access_limit,
repr(self._time_window),
self.__class__.__name__, self._access_limit, repr(self._time_window)
)


Expand Down Expand Up @@ -423,7 +423,7 @@ def __init__(

if throttle_reopen:
self._reopen_throttle = _Throttle(
access_limit=5, time_window=datetime.timedelta(seconds=10),
access_limit=5, time_window=datetime.timedelta(seconds=10)
)
else:
self._reopen_throttle = None
Expand Down
1 change: 1 addition & 0 deletions api_core/google/api_core/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"""

import collections

try:
from collections import abc as collections_abc
except ImportError: # Python 2.7
Expand Down
1 change: 1 addition & 0 deletions api_core/google/api_core/protobuf_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""Helpers for :mod:`protobuf`."""

import collections

try:
from collections import abc as collections_abc
except ImportError: # Python 2.7
Expand Down
2 changes: 1 addition & 1 deletion api_core/google/api_core/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def __init__(
maximum=_DEFAULT_MAXIMUM_DELAY,
multiplier=_DEFAULT_DELAY_MULTIPLIER,
deadline=_DEFAULT_DEADLINE,
on_error=None
on_error=None,
):
self._predicate = predicate
self._initial = initial
Expand Down