)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"2055cb991f1e333026ca8e82b836f90298aea23a","unresolved":false,"context_lines":[{"line_number":11,"context_line":"netaddr.IPAddress() we get the consistent behavior we want"},{"line_number":12,"context_line":"between Linux, BSD and OSX.  Otherwise the exception thrown"},{"line_number":13,"context_line":"(like on OSX) will trigger an incorrect error message saying"},{"line_number":14,"context_line":"59 1\u0027s are an IPv4 address."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Side-effect is we no longer need a BSD-specific test that mocks"},{"line_number":17,"context_line":"some of the netaddr library."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"da6ed579_54c8eda5","line":14,"updated":"2016-01-15 01:40:36.000000000","message":"I don\u0027t understand how this error message will happen and why the UT needs to be removed. From the code, if OSX will accept \u00271\u0027*59, the code will end up with return msg \"\u0027%s\u0027 is not a valid IP address\".\n\nCan you elaborate in a bug report?","commit_id":"25b83bf108827e2b3d1c78939569e886205d8bef"}],"neutron/api/v2/attributes.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"266b697542be63211c93ad6ac3e19f3fdab349d7","unresolved":false,"context_lines":[{"line_number":229,"context_line":"        #   IPAddress(\u0027199.28.113.199\u0027)"},{"line_number":230,"context_line":"        #   \u003e\u003e\u003e"},{"line_number":231,"context_line":"        if \u0027:\u0027 not in data and data.count(\u0027.\u0027) !\u003d 3:"},{"line_number":232,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a valid IP address\") % data"},{"line_number":233,"context_line":"        # A leading \u00270\u0027 in IPv4 address may be interpreted as an octal number,"},{"line_number":234,"context_line":"        # e.g. 011 octal is 9 decimal. Since there is no standard saying"},{"line_number":235,"context_line":"        # whether IP address with leading \u00270\u0027s should be interpreted as octal"}],"source_content_type":"text/x-python","patch_set":1,"id":"da6ed579_3e45ddb2","side":"PARENT","line":232,"updated":"2016-01-15 22:46:12.000000000","message":"The problem is actually this line - setting msg doesn\u0027t stop execution, so the ip.version check still happens below on OSX.  Changing this to \u0027raise\u0027 and leaving in the same order is the fix.","commit_id":"68276dc9614d47d028e46c35bf62668e253af18b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3f9f323afce4d79a98df266ededee871acd866d6","unresolved":false,"context_lines":[{"line_number":234,"context_line":"        # e.g. 011 octal is 9 decimal. Since there is no standard saying"},{"line_number":235,"context_line":"        # whether IP address with leading \u00270\u0027s should be interpreted as octal"},{"line_number":236,"context_line":"        # or decimal, hence we reject leading \u00270\u0027s to avoid ambiguity."},{"line_number":237,"context_line":"        if ip.version \u003d\u003d 4 and str(ip) !\u003d data:"},{"line_number":238,"context_line":"            msg \u003d _(\"\u0027%(data)s\u0027 is not an accepted IP address, \""},{"line_number":239,"context_line":"                    \"\u0027%(ip)s\u0027 is recommended\") % {\"data\": data, \"ip\": ip}"},{"line_number":240,"context_line":"    except Exception:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da6ed579_b3731f15","side":"PARENT","line":237,"range":{"start_line":237,"start_character":8,"end_line":237,"end_character":10},"updated":"2016-01-18 05:04:30.000000000","message":"i think the right fix would be to change this if to elif.","commit_id":"68276dc9614d47d028e46c35bf62668e253af18b"}]}
