def _perform_request(self, request, encoding='<STR_LIT:utf-8>'):
try:<EOL><INDENT>resp = self._filter(request)<EOL>if sys.version_info >= (<NUM_LIT:3>,) and isinstance(resp, bytes) andencoding:<EOL><INDENT>resp = resp.decode(encoding)<EOL><DEDENT><DEDENT>except HTTPError as ex:<EOL><INDENT>_storage_error_handler(ex)<EOL><DEDENT>except Exception as ex:<EOL><INDENT>if sys.version_info >= (<NUM_LIT:3>,):<EOL><INDENT>raise AzureException<EOL><DEDENT>else:<EOL><INDENT>raise AzureException('<STR_LIT>'.format(ex.__class__.__name__, ex.args[<NUM_LIT:0>]))<EOL><DEDENT><DEDENT>return resp<EOL>
Sends the request and return response. Catches HTTPError and hands it
to error handler