o ckF[Æã@s ddlmZGdd„deƒZdS)é)Újsonc@s"eZdZdZdd„Zddd„ZdS)ÚGlacierResponsezª Represents a response from Glacier layer1. It acts as a dictionary containing the combined keys received via JSON in the body (if supplied) and headers. cCs”||_|j|_| d¡|d<|r|D] \}}| |¡||<q|jdkr9| d¡dkr9t | ¡ d¡¡}| |¡| dd¡}|durH||_dSdS)Nzx-amzn-requestidÚ RequestIdéÌz Content-Typezapplication/jsonzutf-8zContent-Length) Ú http_responseÚstatusÚ getheaderrÚloadsÚreadÚdecodeÚupdateÚsize)ÚselfrÚresponse_headersÚ header_nameÚ item_nameÚbodyr ©rú7/usr/lib/python3/dist-packages/boto/glacier/response.pyÚ__init__ s     ÿzGlacierResponse.__init__NcCs |j |¡S)zAReads and returns the response body, or up to the next amt bytes.)rr )rÚamtrrrr /s zGlacierResponse.read)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr rrrrrsrN)Ú boto.compatrÚdictrrrrrÚs