)]}'
{"nova/objects/fields.py":[{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ee5d4a21c4003e45f768307cb94be77c728879e9","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    def stringify(value):"},{"line_number":74,"context_line":"        if six.PY2:"},{"line_number":75,"context_line":"            # encode the value since it could have unicode"},{"line_number":76,"context_line":"            return \u0027\\\u0027%s\\\u0027\u0027 % encodeutils.safe_encode(value, incoming\u003d\u0027utf-8\u0027)"},{"line_number":77,"context_line":"        return \u0027\\\u0027%s\\\u0027\u0027 % value"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_adf13204","line":76,"updated":"2017-05-03 04:24:21.000000000","message":"FWIW, this will encode it into bytes, so all of the fields will be bytes along with the overall repr being bytes. I don\u0027t think this helps though because on the other side, we\u0027re seeing a problem when trying to decode it back to unicode (the log handler format() is doing that now as of recently -- I think the old default was the ColorHandler which just passes through to the builtin logging and doesn\u0027t have the same problem).\n\nIn my patch, I\u0027ve done two steps to get the logging to come out without errors:\n\n 1. Get the string representation of the Instance object using repr() first\n 2. If PY2, decode the string representation to unicode.","commit_id":"dfa008c6d5a2b57b3fe30e8b31e12d351df48454"}]}
