diff --git a/github/GithubObject.py b/github/GithubObject.py index fde8e1db..8e7820eb 100644 --- a/github/GithubObject.py +++ b/github/GithubObject.py @@ -45,11 +45,6 @@ def GithubObject( className, *attributePolicies ): __attributeDefinitions = dict() __methodDefinitions = dict() - @staticmethod - def _addAttributePolicies( attributePolicies ): - for attributePolicy in attributePolicies: - GithubObject._addAttributePolicy( attributePolicy ) - @staticmethod def _addAttributePolicy( attributePolicy ): attributePolicy.apply( GithubObject ) @@ -106,6 +101,6 @@ def GithubObject( className, *attributePolicies ): attributeDefinition.updateAttributes( self ) GithubObject.__name__ = className - GithubObject._addAttributePolicies( attributePolicies ) + GithubObject._addAttributePolicy( SeveralAttributes( attributePolicies ) ) return GithubObject