@@ -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 ):
2626super (Repository ,self ).__init__ (session )
2727self ._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 ):
12531253super (Branch ,self ).__init__ (session )
12541254self ._name = branch .get ('name' )
12551255self ._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 ):
13711371super (Download ,self ).__init__ (session )
13721372self ._api = download .get ('url' )
13731373self ._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 ):
14431443super (Hook ,self ).__init__ (session )
14441444self ._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 ):
15931593super (RepoComment ,self ).__init__ (comment ,session )
15941594self ._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 ):
16781678super (RepoCommit ,self ).__init__ (commit ,session )
16791679self ._author = User (commit .get ('author' ),self ._session )
16801680self ._committer = User (commit .get ('committer' ),self ._session )