def do_request(self, url, params=None):

        req = requests.get(url,
                           params=params,
                           auth=self.oauth,
                           headers={'Connection': 'close'})

        # check the response headers / status code.
        if req.status_code != 200:
            self.log.error('do_request: Status code %i received, content:',
                           req.status_code)

            for part in req.content.split('&'):
                self.log.error('    %s', urllib_parse.unquote(part))

            raise exceptions.FlickrError('do_request: Status code %s received'
                                         % req.status_code)

        return req.content
From the set of registered languages, select the first language
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/auth.py/OAuthFlickrInterface.do_request--crossover with--dataset/ETHPy150Open kivy/kivy/kivy/core/spelling/__init__.py/SpellingBase.select_language