Skip to content

Commit 026a41c

Browse files
committed
Fix super() calls.
1 parent 573f258 commit 026a41c

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

github3/gist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GistFile(GitHubObject):
1717
"""
1818

1919
def __init__(self, attributes):
20-
super(GistFile, self).__init__()
20+
super(GistFile, self).__init__(attributes)
2121

2222
self._raw = attributes.get('raw_url')
2323
self._name = attributes.get('filename')

github3/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class Blob(GitHubObject):
1616
"""The :class:`Blob <Blob>` object."""
1717
def __init__(self, blob):
18-
super(Blob, self).__init__()
18+
super(Blob, self).__init__(blob)
1919
self._content = blob.get('content')
2020
self._enc = blob.get('encoding')
2121
if self._enc == 'base64':
@@ -234,7 +234,7 @@ def tree(self):
234234
class Hash(GitHubObject):
235235
"""The :class:`Hash <Hash>` object."""
236236
def __init__(self, info):
237-
super(Hash, self).__init__()
237+
super(Hash, self).__init__(info)
238238
self._path = info.get('path')
239239
self._mode = info.get('mode')
240240
self._type = info.get('type')

github3/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class GitHubCore(GitHubObject):
3434
basic attributes to other classes that are very useful to have.
3535
"""
3636
def __init__(self, json, ses=None):
37+
super(GitHubCore, self).__init__(json)
3738
if hasattr(ses, '_session'):
3839
# i.e. session is actually a GitHub object
3940
ses = ses._session
4041
if ses is None:
4142
ses = session()
4243
self._session = ses
43-
self._json_data = json
4444
self._github_url = 'https://api.github.com'
4545
self._time_format = '%Y-%m-%dT%H:%M:%SZ'
4646
self._remaining = 5000

github3/pulls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def user(self):
6161
class PullFile(GitHubObject):
6262
"""The :class:`PullFile <PullFile>` object."""
6363
def __init__(self, pfile):
64-
super(PullFile, self).__init__()
64+
super(PullFile, self).__init__(pfile)
6565
self._sha = pfile.get('sha')
6666
self._name = pfile.get('filename')
6767
self._status = pfile.get('status')

github3/repo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ class Contents(GitHubObject):
13031303
"""
13041304

13051305
def __init__(self, content):
1306-
super(Contents, self).__init__()
1306+
super(Contents, self).__init__(content)
13071307
# links
13081308
self._api = content['_links'].get('self')
13091309
self._html = content['_links'].get('html')
@@ -1579,7 +1579,7 @@ class RepoTag(GitHubObject):
15791579
"""
15801580

15811581
def __init__(self, tag):
1582-
super(RepoTag, self).__init__()
1582+
super(RepoTag, self).__init__(tag)
15831583
self._name = tag.get('name')
15841584
self._zip = tag.get('zipball_url')
15851585
self._tar = tag.get('tarball_url')
@@ -1765,7 +1765,7 @@ class Comparison(GitHubObject):
17651765
repository."""
17661766

17671767
def __init__(self, compare):
1768-
super(Comparison, self).__init__()
1768+
super(Comparison, self).__init__(compare)
17691769
self._api = compare.get('api')
17701770
self._html = compare.get('html_url')
17711771
self._perma = compare.get('permalink_url')

github3/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Plan(GitHubObject):
7575
information about a user easier.
7676
"""
7777
def __init__(self, plan):
78-
super(Plan, self).__init__()
78+
super(Plan, self).__init__(plan)
7979
self._collab = plan.get('collaborators')
8080
self._name = plan.get('name')
8181
self._private = plan.get('private_repos')

0 commit comments

Comments
 (0)