)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"5fba4ef9da1a719c439931f9eec8da3b56e46dbf","unresolved":false,"context_lines":[{"line_number":18,"context_line":"now randomized by default, so dictionary items are serialized in a"},{"line_number":19,"context_line":"random order by JSON. Moreover, the hash function is different on"},{"line_number":20,"context_line":"Python 2 and Python 3, so setting PYTHONHASHSEED\u003d0 in tox.ini is now"},{"line_number":21,"context_line":"enough to have a reliable JSON serialized ouput in all cases."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Fix also NaNJSONEncoder: On Python 3, don\u0027t try to decode bytes from"},{"line_number":24,"context_line":"the encoder encoding, since the JSON encoder has no more encoding on"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a1a9d01_b5b585ed","line":21,"updated":"2015-10-01 10:45:23.000000000","message":"Did you mean \u0027not enough\u0027 here? Because if we could have JSON serialized in a same way both in py2 and py3, why would we need this change...","commit_id":"b75dd7c771a1a75eaf8769cdf8ecb61b6c6829ad"},{"author":{"_account_id":9107,"name":"Victor Stinner","email":"vstinner@redhat.com","username":"haypo"},"change_message_id":"7cf1f51826ec34ca098c62afb53e3a3d58d69cba","unresolved":false,"context_lines":[{"line_number":18,"context_line":"now randomized by default, so dictionary items are serialized in a"},{"line_number":19,"context_line":"random order by JSON. Moreover, the hash function is different on"},{"line_number":20,"context_line":"Python 2 and Python 3, so setting PYTHONHASHSEED\u003d0 in tox.ini is now"},{"line_number":21,"context_line":"enough to have a reliable JSON serialized ouput in all cases."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Fix also NaNJSONEncoder: On Python 3, don\u0027t try to decode bytes from"},{"line_number":24,"context_line":"the encoder encoding, since the JSON encoder has no more encoding on"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a1a9d01_301423e7","line":21,"in_reply_to":"9a1a9d01_b5b585ed","updated":"2015-10-01 11:08:21.000000000","message":"Oops, a small typo which changes the meaning of the sentence. I mean \"is not enough\".","commit_id":"b75dd7c771a1a75eaf8769cdf8ecb61b6c6829ad"}],"openstack_dashboard/api/rest/utils.py":[{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"f75d48b7bdad22d95039a3ca0a0982f9b7850d6e","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        if content_type !\u003d \u0027application/json\u0027:"},{"line_number":43,"context_line":"            raise ValueError(\"content type is %s\" % content_type)"},{"line_number":44,"context_line":"        body \u003d self.content.decode(\u0027utf-8\u0027)"},{"line_number":45,"context_line":"        return json.loads(body)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"class CreatedResponse(_RestResponse):"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_1e20d848","line":45,"updated":"2015-10-13 08:39:18.000000000","message":"I wonder if it would make sense to make this a mixin, only inheriting from Object.","commit_id":"ee426f91d67b7af524f1e3c0670f8bb990955fba"}],"openstack_dashboard/test/api_tests/glance_rest_tests.py":[{"author":{"_account_id":7187,"name":"Janet Yu","email":"jwy@cs.stanford.edu","username":"jwy"},"change_message_id":"b8c7f9846c2f42e644225b513629754dad5473fb","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        response \u003d glance.ImageProperties().patch(request, \u00271\u0027)"},{"line_number":48,"context_line":"        self.assertStatusCode(response, 204)"},{"line_number":49,"context_line":"        self.assertEqual(response.content, b\u0027\u0027)"},{"line_number":50,"context_line":"        gc.image_update_properties.assert_called_once_with("},{"line_number":51,"context_line":"            request, \u00271\u0027, [\u0027c\u0027, \u0027d\u0027], a\u003d\u00271\u0027, b\u003d\u00272\u0027"},{"line_number":52,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_215cf27b","line":49,"updated":"2015-09-01 02:55:19.000000000","message":"Not saying this is incorrect, just asking for my understanding - why is this change needed?","commit_id":"26697e46f50bbaceb48721135e4eed1771501260"},{"author":{"_account_id":9107,"name":"Victor Stinner","email":"vstinner@redhat.com","username":"haypo"},"change_message_id":"663409897353cc66277a87c20e33d60aaaa0c12c","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        response \u003d glance.ImageProperties().patch(request, \u00271\u0027)"},{"line_number":48,"context_line":"        self.assertStatusCode(response, 204)"},{"line_number":49,"context_line":"        self.assertEqual(response.content, b\u0027\u0027)"},{"line_number":50,"context_line":"        gc.image_update_properties.assert_called_once_with("},{"line_number":51,"context_line":"            request, \u00271\u0027, [\u0027c\u0027, \u0027d\u0027], a\u003d\u00271\u0027, b\u003d\u00272\u0027"},{"line_number":52,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_b59d8e0b","line":49,"in_reply_to":"da20952f_215cf27b","updated":"2015-09-01 10:57:12.000000000","message":"The HTTP protocol uses raw bytes: the HTTP body is pure bytes: https://wiki.openstack.org/wiki/Python3#HTTP\n\nSo we must use b\u0027\u0027 to use a bytes string on Python 3. Try to run the test unmodified on Python 3 to see the error. (This change fixes the unit test on Python 3, see changes on tox.ini.)","commit_id":"26697e46f50bbaceb48721135e4eed1771501260"}]}
