Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add __repr__ to GlacierResponse #982

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −1
Split
View
@@ -41,7 +41,10 @@ def __init__(self, http_response, response_headers):
size = http_response.getheader('Content-Length', None)
if size is not None:
self.size = size
-
+
+ def __repr__(self):
+ return "<GlacierResponse %s>" % self.get('RequestId')
+
def read(self, amt=None):
"Reads and returns the response body, or up to the next amt bytes."
return self.http_response.read(amt)