8000 Merge pull request #350 from twilio/DEVX-4966_max_page_size · SituProbability/twilio-python@0b32761 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b32761

Browse files
authored
Merge pull request twilio#350 from twilio/DEVX-4966_max_page_size
[DEVX-4966] Remove max page size coercion from library.
2 parents 67d4ba4 + 4f56940 commit 0b32761

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

twilio/base/version.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Version(object):
99
"""
1010
Represents an API version.
1111
"""
12-
MAX_PAGE_SIZE = 1000
1312

1413
def __init__(self, domain):
1514
"""
@@ -140,9 +139,7 @@ def read_limits(self, limit=None, page_size=None):
140139
if limit is not None:
141140

142141
if page_size is None:
143-
# If there is no user-specified page_size, pick the most
144-
# network efficient size
145-
page_size = min(limit, self.MAX_PAGE_SIZE)
142+
page_size = limit
146143

147144
page_limit = int(ceil(limit / float(page_size)))
148145

0 commit comments

Comments
 (0)
0