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

Commitbf547ac

Browse files
committed
Improve fix forsigmavirus24#128
1 parentbe455d7 commitbf547ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎github3/structs.py

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp