def _raw_fetch(self, path, base=None, data=None, httpAuth=False, method=None):
        if not base:
            base = self.BASE_URL
        p = base + path
        args = ''
        if self.user and self.token and not httpAuth:
            params = '&'.join(['login=' + hclient.quote(self.user),
                               'token=' + hclient.quote(self.token)])
            if '?' in path:
                p += '&' + params
            else:
                p += '?' + params

        if httpAuth:
            return self.fetcher(p, data,
                                username=self.user, password=self.token,
                                method=method)
        else:
            return self.fetcher(p, data)
dataset/ETHPy150Open dustin/py-github/github/github.py/BaseEndpoint._raw_fetch/original