)]}'
{"oslo/utils/encodeutils.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"fb641a614c3aa5b54949f6b0c336418331f666c6","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    if hasattr(encoding, \u0027lower\u0027):"},{"line_number":86,"context_line":"        encoding \u003d encoding.lower()"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    if isinstance(text, six.text_type) and encoding !\u003d incoming:"},{"line_number":89,"context_line":"        return text.encode(encoding, errors)"},{"line_number":90,"context_line":"    elif text and encoding !\u003d incoming:"},{"line_number":91,"context_line":"        # Decode text before encoding it with `encoding`"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_c3873011","line":88,"updated":"2014-09-08 16:20:34.000000000","message":"If the input value is text_type it won\u0027t be encoded, so we always need to encode it, right?","commit_id":"5d38e790b0898c16dde3dd480492a2796790b160"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"9177901a11f2ee7d526c40205b7dd566a62dab22","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    if hasattr(encoding, \u0027lower\u0027):"},{"line_number":86,"context_line":"        encoding \u003d encoding.lower()"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    if isinstance(text, six.text_type) and encoding !\u003d incoming:"},{"line_number":89,"context_line":"        return text.encode(encoding, errors)"},{"line_number":90,"context_line":"    elif text and encoding !\u003d incoming:"},{"line_number":91,"context_line":"        # Decode text before encoding it with `encoding`"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_63692425","line":88,"in_reply_to":"fa98f980_c3873011","updated":"2014-09-08 16:27:09.000000000","message":"\"If the input value is text_type it won\u0027t be encoded\" - it won\u0027t be encoded only in case when \"encoding\" is equal to \"incoming\" regarding to the current logic.\n\n\"so we always need to encode it, right?\" - no, if we already have required encoding, then we do not need encode it one more time.","commit_id":"5d38e790b0898c16dde3dd480492a2796790b160"}]}
