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

Commit81b1cc0

Browse files
committed
[refssigmavirus24#112] Can't use super with an old-style class
1 parent06295bf commit81b1cc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎github3/decorators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
classRequestsStringIO(StringIO):
2222
defread(self,n=-1,*args,**kwargs):
23-
returnsuper(RequestsStringIO,self).read(n)
23+
# StringIO is an old-style class, so can't use super
24+
returnStringIO.read(self,n)
2425

2526

2627
defrequires_auth(func):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp