Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbe455d7

Browse files
esacteksabsigmavirus24
authored andcommitted
sets a per_page default to 100 if None is specified, addressessigmavirus24#128
1 parent9cb2209 commitbe455d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎github3/structs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def __repr__(self):
4141
def__iter__(self):
4242
url,params,cls=self.url,self.params,self.cls
4343
headers=self.headers
44-
44+
ifparams.get('per_page')isNone:
45+
params['per_page']=100
4546
while (self.count==-1orself.count>0)andurl:
4647
response=self._get(url,params=params,headers=headers)
4748
self.last_response=response

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp