)]}'
{"blazar/hacking/checks.py":[{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"66c36a44216196828642e72f727bf3aa3e3a7d3c","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    is yielded that contains the offending index in logical line and a"},{"line_number":44,"context_line":"    message describe the check validation failure."},{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":"    if _log_translation_hint.match(logical_line):"},{"line_number":47,"context_line":"        yield (0, \"C312: Log messages should not be translated!\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f1d235d_7924d8af","line":46,"range":{"start_line":46,"start_character":28,"end_line":46,"end_character":35},"updated":"2017-07-11 04:46:31.000000000","message":"Thanks for your patch, However, you can use search() instead use match() to locate a match anywhere in string [1][2]. Moreover, using search() better than using match() in performace [3]\n[1] https://docs.python.org/2/library/re.html#re.match\n[2] https://docs.python.org/2/library/re.html#search-vs-match\n[3] http://paste.openstack.org/show/614978/","commit_id":"81ca88877e260e945bc1aed9a47572959d8e7a4a"},{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"c5283f389e5aef39defcd38b34c32e3eb59ff68a","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    is yielded that contains the offending index in logical line and a"},{"line_number":44,"context_line":"    message describe the check validation failure."},{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":"    if _log_translation_hint.match(logical_line):"},{"line_number":47,"context_line":"        yield (0, \"C312: Log messages should not be translated!\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f1d235d_1cfdd239","line":46,"range":{"start_line":46,"start_character":28,"end_line":46,"end_character":35},"in_reply_to":"3f1d235d_7924d8af","updated":"2017-07-11 06:05:39.000000000","message":"\"In other words, ignoring the fact that search and match have different purposes, re.search is faster than re.match only when the pattern is a literal string.\"\n\nhttps://stackoverflow.com/questions/12803709/re-match-vs-re-search-performance-difference","commit_id":"81ca88877e260e945bc1aed9a47572959d8e7a4a"}]}
