8000 Fix off-by-one error · PNPtutorials/twilio-python@2b00384 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b00384

Browse files
author
matt
committed
Fix off-by-one error
1 parent fcd73c3 commit 2b00384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

twilio/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def stream(self, page, limit=None, page_limit=None):
127127
for record in page:
128128
yield record
129129
current_record += 1
130-
if limit and limit is not values.unset and limit <= current_record:
130+
if limit and limit is not values.unset and limit < current_record:
131131
return
132132

133-
if page_limit and page_limit is not values.unset and page_limit <= current_page:
133+
if page_limit and page_limit is not values.unset and page_limit < current_page:
134134
return
135135

136136
page = page.next_page()

0 commit comments

Comments
 (0)
0