def __init__(self, func, method='GET'):
        """Create an authenticate object

        Arguments:
            func: a function to decorate
            method: the method of the request to construct

        """
        self.func = func
        self.owner = None
        self.instance = None
        self.headers = {
                'Accept-Encoding': 'identity, deflate, compress, gzip',
                'User-Agent': 'python-requests/1.2.0',
                'Accept': 'application/vnd.github.v3.base64',
                }
        self.method = method
def __init__ ( self , func , method = 'GET' ) : self . func = func self . owner = None self . instance = None self . headers = { 'Accept-Encoding' : 'identity, deflate, compress, gzip' , 'User-Agent' : 'python-requests/1.2.0' , 'Accept' : 'application/vnd.github.v3.base64' , } self . method = method
Create an authenticate object

        Arguments:
            func: a function to decorate
            method: the method of the request to construct