)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9096,"name":"Cindy Pallares","email":"u1@cindy.sh","username":"cpallares"},"change_message_id":"a59b5cfe925ddaf9000aa7b8ffc60197a90fd771","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Glance image-download to stdout fails on Python3 due to sys.stdout.write"},{"line_number":10,"context_line":"not allowing bytes to be written directly."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"A good description of the issue is listed at http://bugs.python.org/issue18512"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I2963914e2e0744410267b5735ff77939413916d4"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a7e1126_0001c437","line":12,"updated":"2015-12-21 16:37:38.000000000","message":"You can create a bug reference with:\n\nCloses-Bug: #1528083","commit_id":"aaf3e367890506e99d4cea22e68ec0c1b48df181"}],"glanceclient/common/utils.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a1c455941de9e9ca5a6451c7bbb5ddd06ac5902a","unresolved":false,"context_lines":[{"line_number":298,"context_line":"    :param path: path to save the image to"},{"line_number":299,"context_line":"    \"\"\""},{"line_number":300,"context_line":"    if path is None:"},{"line_number":301,"context_line":"        try:"},{"line_number":302,"context_line":"            image \u003d sys.stdout.buffer"},{"line_number":303,"context_line":"        except AttributeError:"},{"line_number":304,"context_line":"            image \u003d sys.stdout"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a7e1126_1577afa0","line":301,"updated":"2015-12-22 02:12:56.000000000","message":"Sorry for nitpicking on this but, given there are enough differences between py2 and py3, could you please use an if statement here rather than trying to access the `buffer` attribute?\n\nThe only benefit I see from doing what I\u0027m suggesting is that it\u0027ll document that this is a py3/py2 thing and not some dark magic in the way python works.\n\n    if six.PY3:\n        ...\n    else:\n        ...\n\n(or the other way around if you prefer)","commit_id":"a4d441e5b33159c7265fedced764318e684de3e9"}]}
