def add_default_headers(self, headers):
        try:
            headers['Authorization'] = 'OAuth ' + self.token
        except __HOLE__:
            self.token = self._fetch_oauth_token()

            headers['Authorization'] = 'OAuth ' + self.token

        return headers
dataset/ETHPy150Open cloudkick/libcloud/libcloud/compute/drivers/brightbox.py/BrightboxConnection.add_default_headers