mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Remove useless ObjectGetter
It was replaced by ListOfObjects with ElementGetable some time ago
This commit is contained in:
@@ -86,15 +86,6 @@ class Deletable( MethodFromCallable ):
|
||||
def __execute( self, obj, *args, **kwds ):
|
||||
obj._github._statusRequest( "DELETE", obj._baseUrl, None, None )
|
||||
|
||||
class ObjectGetter( MethodFromCallable ):
|
||||
def __init__( self, singularName, type, attributes ):
|
||||
MethodFromCallable.__init__( self, "get_" + singularName, self.__execute )
|
||||
self.__attributes = attributes
|
||||
self.__type = type
|
||||
|
||||
def __execute( self, obj, *args, **kwds ):
|
||||
return self.__type( obj._github, self.__attributes( obj, *args, **kwds ), lazy = False )
|
||||
|
||||
def GithubObject( className, *attributePolicies ):
|
||||
class GithubObject:
|
||||
__attributeDefinitions = dict()
|
||||
|
||||
Reference in New Issue
Block a user