8000 [refs #112] Can't use super with an old-style class · Web5design/github3.py@81b1cc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81b1cc0

Browse files
committed
[refs sigmavirus24#112] Can't use super with an old-style class
1 parent 06295bf commit 81b1cc0

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
class RequestsStringIO(StringIO):
2222
def read(self, n=-1, *args, **kwargs):
23-
return super(RequestsStringIO, self).read(n)
23+
# StringIO is an old-style class, so can't use super
24+
return StringIO.read(self, n)
2425

2526

3B23 2627
def requires_auth(func):

0 commit comments

Comments
 (0)
0