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

Commit3d12581

Browse files
committed
Fixed __init__'s.
1 parenta3921b3 commit3d12581

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎github3/repo.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Repository(GitHubCore):
2222
sends information about repositories.
2323
"""
2424

25-
def__init__(self,repo,session):
25+
def__init__(self,repo,session=None):
2626
super(Repository,self).__init__(session)
2727
self._update_(repo)
2828

@@ -1249,7 +1249,7 @@ class Branch(GitHubCore):
12491249
"""The :class:`Branch <Branch>` object. It holds the information GitHub
12501250
returns about a branch on a :class:`Repository <Repository>`.
12511251
"""
1252-
def__init__(self,branch,session):
1252+
def__init__(self,branch,session=None):
12531253
super(Branch,self).__init__(session)
12541254
self._name=branch.get('name')
12551255
self._commit=None
@@ -1367,7 +1367,7 @@ class Download(GitHubCore):
13671367
information about files uploaded to the downloads section of a repository.
13681368
"""
13691369

1370-
def__init__(self,download,session):
1370+
def__init__(self,download,session=None):
13711371
super(Download,self).__init__(session)
13721372
self._api=download.get('url')
13731373
self._html=download.get('html_url')
@@ -1439,7 +1439,7 @@ class Hook(GitHubCore):
14391439
"""The :class:`Hook <Hook>` object. This handles the information returned
14401440
by GitHub about hooks set on a repository."""
14411441

1442-
def__init__(self,hook,session):
1442+
def__init__(self,hook,session=None):
14431443
super(Hook,self).__init__(session)
14441444
self._update_(hook)
14451445

@@ -1589,7 +1589,7 @@ class RepoComment(BaseComment):
15891589
information about a comment on a file in a repository.
15901590
"""
15911591

1592-
def__init__(self,comment,session):
1592+
def__init__(self,comment,session=None):
15931593
super(RepoComment,self).__init__(comment,session)
15941594
self._update_(comment)
15951595

@@ -1674,7 +1674,7 @@ class RepoCommit(BaseCommit):
16741674
returned from the git data section.
16751675
"""
16761676

1677-
def__init__(self,commit,session):
1677+
def__init__(self,commit,session=None):
16781678
super(RepoCommit,self).__init__(commit,session)
16791679
self._author=User(commit.get('author'),self._session)
16801680
self._committer=User(commit.get('committer'),self._session)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp