diff --git a/codegen/templates/GithubObject.py b/codegen/templates/GithubObject.py index 801e2408..bc9da959 100644 --- a/codegen/templates/GithubObject.py +++ b/codegen/templates/GithubObject.py @@ -8,10 +8,10 @@ import {{ dependency }} class {{ class.name }}( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) {% if class.isCompletable %} + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() {% endif %} diff --git a/src/github/AuthenticatedUser.py b/src/github/AuthenticatedUser.py index ed7bdab9..e31d0269 100644 --- a/src/github/AuthenticatedUser.py +++ b/src/github/AuthenticatedUser.py @@ -16,9 +16,9 @@ import Authorization class AuthenticatedUser( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Authorization.py b/src/github/Authorization.py index 227e8860..a7459d0c 100644 --- a/src/github/Authorization.py +++ b/src/github/Authorization.py @@ -7,9 +7,9 @@ from GithubObject import * class Authorization( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Branch.py b/src/github/Branch.py index 61912800..3c2428c0 100644 --- a/src/github/Branch.py +++ b/src/github/Branch.py @@ -8,7 +8,6 @@ import Commit class Branch( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Commit.py b/src/github/Commit.py index d810b91b..7303653d 100644 --- a/src/github/Commit.py +++ b/src/github/Commit.py @@ -13,9 +13,9 @@ import CommitComment class Commit( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/CommitComment.py b/src/github/CommitComment.py index cd0032e8..8890ba7c 100644 --- a/src/github/CommitComment.py +++ b/src/github/CommitComment.py @@ -8,9 +8,9 @@ import NamedUser class CommitComment( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/CommitFile.py b/src/github/CommitFile.py index 2500b085..6e86c0bd 100644 --- a/src/github/CommitFile.py +++ b/src/github/CommitFile.py @@ -7,7 +7,6 @@ from GithubObject import * class CommitFile( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/CommitStats.py b/src/github/CommitStats.py index d5c1575b..307aedd9 100644 --- a/src/github/CommitStats.py +++ b/src/github/CommitStats.py @@ -7,7 +7,6 @@ from GithubObject import * class CommitStats( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Download.py b/src/github/Download.py index 24393f54..4b3ebade 100644 --- a/src/github/Download.py +++ b/src/github/Download.py @@ -7,9 +7,9 @@ from GithubObject import * class Download( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Event.py b/src/github/Event.py index d8b17e3e..5da8590b 100644 --- a/src/github/Event.py +++ b/src/github/Event.py @@ -10,9 +10,9 @@ import NamedUser class Event( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Gist.py b/src/github/Gist.py index d9ffe379..19b5b1b8 100644 --- a/src/github/Gist.py +++ b/src/github/Gist.py @@ -10,9 +10,9 @@ import GistComment class Gist( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/GistComment.py b/src/github/GistComment.py index 3dcd27ec..fd6955f7 100644 --- a/src/github/GistComment.py +++ b/src/github/GistComment.py @@ -8,9 +8,9 @@ import NamedUser class GistComment( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/GitAuthor.py b/src/github/GitAuthor.py index fd44a027..4d84fb82 100644 --- a/src/github/GitAuthor.py +++ b/src/github/GitAuthor.py @@ -7,7 +7,6 @@ from GithubObject import * class GitAuthor( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitBlob.py b/src/github/GitBlob.py index 0624d7ee..016fdc8b 100644 --- a/src/github/GitBlob.py +++ b/src/github/GitBlob.py @@ -7,7 +7,6 @@ from GithubObject import * class GitBlob( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitCommit.py b/src/github/GitCommit.py index cbb50227..96fbe5c5 100644 --- a/src/github/GitCommit.py +++ b/src/github/GitCommit.py @@ -10,7 +10,6 @@ import GitTree class GitCommit( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitObject.py b/src/github/GitObject.py index aa85ad17..9ce2815b 100644 --- a/src/github/GitObject.py +++ b/src/github/GitObject.py @@ -7,7 +7,6 @@ from GithubObject import * class GitObject( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitRef.py b/src/github/GitRef.py index 2e0facd3..b93e67d0 100644 --- a/src/github/GitRef.py +++ b/src/github/GitRef.py @@ -8,7 +8,6 @@ import GitObject class GitRef( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitTag.py b/src/github/GitTag.py index 4d0f81a5..4902d6c7 100644 --- a/src/github/GitTag.py +++ b/src/github/GitTag.py @@ -9,7 +9,6 @@ import GitObject class GitTag( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitTree.py b/src/github/GitTree.py index 6dba0842..cb93625e 100644 --- a/src/github/GitTree.py +++ b/src/github/GitTree.py @@ -8,7 +8,6 @@ import GitTreeElement class GitTree( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/GitTreeElement.py b/src/github/GitTreeElement.py index 47033408..39f8ef85 100644 --- a/src/github/GitTreeElement.py +++ b/src/github/GitTreeElement.py @@ -7,7 +7,6 @@ from GithubObject import * class GitTreeElement( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Hook.py b/src/github/Hook.py index 3ce89565..a0603c3a 100644 --- a/src/github/Hook.py +++ b/src/github/Hook.py @@ -7,7 +7,6 @@ from GithubObject import * class Hook( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Issue.py b/src/github/Issue.py index 9074cc46..0d9cf976 100644 --- a/src/github/Issue.py +++ b/src/github/Issue.py @@ -12,9 +12,9 @@ import Label class Issue( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/IssueComment.py b/src/github/IssueComment.py index 13284cd9..94318ba8 100644 --- a/src/github/IssueComment.py +++ b/src/github/IssueComment.py @@ -8,9 +8,9 @@ import NamedUser class IssueComment( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/IssueEvent.py b/src/github/IssueEvent.py index feca8ab8..c1bad936 100644 --- a/src/github/IssueEvent.py +++ b/src/github/IssueEvent.py @@ -8,9 +8,9 @@ import NamedUser class IssueEvent( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Label.py b/src/github/Label.py index 701735dc..5c36bd34 100644 --- a/src/github/Label.py +++ b/src/github/Label.py @@ -7,9 +7,9 @@ from GithubObject import * class Label( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Milestone.py b/src/github/Milestone.py index 2a1a2e28..832fac15 100644 --- a/src/github/Milestone.py +++ b/src/github/Milestone.py @@ -9,9 +9,9 @@ import Label class Milestone( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/NamedUser.py b/src/github/NamedUser.py index 052be681..1b7ac5df 100644 --- a/src/github/NamedUser.py +++ b/src/github/NamedUser.py @@ -13,9 +13,9 @@ import Event class NamedUser( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Organization.py b/src/github/Organization.py index e66d3b48..d530d9bf 100644 --- a/src/github/Organization.py +++ b/src/github/Organization.py @@ -12,9 +12,9 @@ import NamedUser class Organization( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Permissions.py b/src/github/Permissions.py index 84329f06..ba01e9c6 100644 --- a/src/github/Permissions.py +++ b/src/github/Permissions.py @@ -7,7 +7,6 @@ from GithubObject import * class Permissions( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Plan.py b/src/github/Plan.py index 29bbc7de..aa7daf5b 100644 --- a/src/github/Plan.py +++ b/src/github/Plan.py @@ -7,7 +7,6 @@ from GithubObject import * class Plan( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/PullRequest.py b/src/github/PullRequest.py index 375b57c6..69a4fb64 100644 --- a/src/github/PullRequest.py +++ b/src/github/PullRequest.py @@ -11,9 +11,9 @@ import PullRequestFile class PullRequest( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/PullRequestComment.py b/src/github/PullRequestComment.py index 0bff469c..932c878c 100644 --- a/src/github/PullRequestComment.py +++ b/src/github/PullRequestComment.py @@ -8,9 +8,9 @@ import NamedUser class PullRequestComment( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/PullRequestFile.py b/src/github/PullRequestFile.py index d47668bd..be23a042 100644 --- a/src/github/PullRequestFile.py +++ b/src/github/PullRequestFile.py @@ -7,7 +7,6 @@ from GithubObject import * class PullRequestFile( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Repository.py b/src/github/Repository.py index ccf9bebf..c5323c4d 100644 --- a/src/github/Repository.py +++ b/src/github/Repository.py @@ -30,9 +30,9 @@ import Event class Repository( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/RepositoryKey.py b/src/github/RepositoryKey.py index 767ae6e1..f0d8f266 100644 --- a/src/github/RepositoryKey.py +++ b/src/github/RepositoryKey.py @@ -7,9 +7,9 @@ from GithubObject import * class RepositoryKey( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/Tag.py b/src/github/Tag.py index cb030073..761df5f9 100644 --- a/src/github/Tag.py +++ b/src/github/Tag.py @@ -8,7 +8,6 @@ import Commit class Tag( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) diff --git a/src/github/Team.py b/src/github/Team.py index ead82fb5..c1c1689c 100644 --- a/src/github/Team.py +++ b/src/github/Team.py @@ -9,9 +9,9 @@ import NamedUser class Team( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete() diff --git a/src/github/UserKey.py b/src/github/UserKey.py index e3893949..e552b0a7 100644 --- a/src/github/UserKey.py +++ b/src/github/UserKey.py @@ -7,9 +7,9 @@ from GithubObject import * class UserKey( object ): def __init__( self, requester, attributes, completion ): self.__requester = requester - self.__completed = completion != LazyCompletion self.__initAttributes() self.__useAttributes( attributes ) + self.__completed = completion != LazyCompletion if completion == ImmediateCompletion: self.__complete()