)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13157,"name":"Zhao Chao","email":"zhaochao1984@gmail.com","username":"zhaochao"},"change_message_id":"93a913c8a44d12bc036ea83e820cde98006ae70b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Thomas Goirand \u003czigo@debian.org\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-02-19 16:41:33 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix for python3"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch fixes issues in test_operating_system.TestOperatingSystem,"},{"line_number":10,"context_line":"leading to wront type being used."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3fa0c359_bc2e9289","line":7,"updated":"2018-02-22 13:13:23.000000000","message":"Should use a more specific summary line.","commit_id":"24a4099374853b12ed478bbd87c8af9e46a101e6"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"e9c2875269e1b596ce8897a85d59d22d3ad8e377","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix for python3"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch fixes issues in test_operating_system.TestOperatingSystem,"},{"line_number":10,"context_line":"leading to wront type being used."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I0ac88cea3b711b8838c7a7e64300d19761ab9da7"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3fa0c359_4ce92b18","line":10,"updated":"2018-02-19 16:25:16.000000000","message":"wrong (sp)","commit_id":"24a4099374853b12ed478bbd87c8af9e46a101e6"}],"trove/guestagent/common/operating_system.py":[{"author":{"_account_id":13157,"name":"Zhao Chao","email":"zhaochao1984@gmail.com","username":"zhaochao"},"change_message_id":"93a913c8a44d12bc036ea83e820cde98006ae70b","unresolved":false,"context_lines":[{"line_number":173,"context_line":"    # out of scope."},{"line_number":174,"context_line":"    with tempfile.NamedTemporaryFile(\u0027w\u0027, delete\u003dFalse) as fp:"},{"line_number":175,"context_line":"        if encode:"},{"line_number":176,"context_line":"            fp.write(codec.serialize(data.encode()))"},{"line_number":177,"context_line":"        else:"},{"line_number":178,"context_line":"            fp.write(codec.deserialize(data.decode()))"},{"line_number":179,"context_line":"        fp.flush()"},{"line_number":180,"context_line":"        fp.close()  # Release the resource before proceeding."},{"line_number":181,"context_line":"        copy(fp.name, path, force\u003dTrue, as_root\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa0c359_16a51e47","line":178,"range":{"start_line":176,"start_character":0,"end_line":178,"end_character":54},"updated":"2018-02-22 13:13:23.000000000","message":"\u0027data\u0027 here is a dict, so we cannot use encode/decode here.\n\nI have run py34 tests mannually, the problem should be in test_write_file_as_root/test_write_file_as_root, i.e. temporary files should be opened with text mode. By default, binary mode is used, however the default behavior of python file reading/writing is different between 2.x and 3.x. For 3.x, when a file is opened with binary mode, \u0027bytes\u0027 objects should be used while reading/writing from it. For 2.x, \u0027str\u0027 objects are used instead.","commit_id":"24a4099374853b12ed478bbd87c8af9e46a101e6"}]}
