)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8a70d180cab70083b0886b0f006df6845ce448e9","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Enable the \"not-callable\" pylint check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change enables the \"not-callable\" pylint check, after disabling a"},{"line_number":10,"context_line":"few cases where the alert triggers but the usage was intended (defining"},{"line_number":11,"context_line":"decorators)."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_0645c716","line":9,"updated":"2014-12-29 16:59:43.000000000","message":"It would be better if you describe in commit message what the pylint check tries to catch. Without it, it\u0027s hard to tell whether we want it to be left enabled.","commit_id":"77a54013e58d53e64d3008d9c64ecb3df617ce0b"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"acaa5793017c7b7bd6b4567b361b1ad232420cf1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Enable the \"not-callable\" pylint check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change enables the \"not-callable\" pylint check, after disabling a"},{"line_number":10,"context_line":"few cases where the alert triggers but the usage was intended (defining"},{"line_number":11,"context_line":"decorators)."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_7611d252","line":9,"in_reply_to":"3a961159_0645c716","updated":"2014-12-30 01:39:03.000000000","message":"Done","commit_id":"77a54013e58d53e64d3008d9c64ecb3df617ce0b"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"bb69633d2fbf46cebeecbaa51d9e0b07bd35fe89","unresolved":false,"context_lines":[{"line_number":11,"context_line":"decorators)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"A real syntax error was also caught in vmware advanced services plugin -"},{"line_number":14,"context_line":"fixed in a separate change."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I09ad929902509018fe7183a15b784601c36b6196"},{"line_number":17,"context_line":"Related-Bug: #1356224"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_752da88e","line":14,"updated":"2014-12-23 08:54:05.000000000","message":"That plugin has been removed now (https://review.openstack.org/#/c/142515), and also it\u0027s not useful for a commit message to say that you\u0027ve done something in another, unreferenced commit.","commit_id":"77a54013e58d53e64d3008d9c64ecb3df617ce0b"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"acaa5793017c7b7bd6b4567b361b1ad232420cf1","unresolved":false,"context_lines":[{"line_number":11,"context_line":"decorators)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"A real syntax error was also caught in vmware advanced services plugin -"},{"line_number":14,"context_line":"fixed in a separate change."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I09ad929902509018fe7183a15b784601c36b6196"},{"line_number":17,"context_line":"Related-Bug: #1356224"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_6b164f57","line":14,"in_reply_to":"3a961159_752da88e","updated":"2014-12-30 01:39:03.000000000","message":"Ack, I\u0027ll remove it.\n\nFwiw, I started adding justification comments like these after a few \"-1 why is this worth doing?\" review comments on similar \"enable $foo pylint check\" changes.  Since I\u0027m trying to separate out the real bugfixes into their own changes, the \"enable check\" change always looks dull and boring without additional context.","commit_id":"77a54013e58d53e64d3008d9c64ecb3df617ce0b"}],"neutron/agent/securitygroups_rpc.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8a70d180cab70083b0886b0f006df6845ce448e9","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    def skip_if_noopfirewall_or_firewall_disabled(func):"},{"line_number":192,"context_line":"        @functools.wraps(func)"},{"line_number":193,"context_line":"        def decorated_function(self, *args, **kwargs):"},{"line_number":194,"context_line":"            # pylint: disable\u003dnot-callable"},{"line_number":195,"context_line":"            if (isinstance(self.firewall, firewall.NoopFirewallDriver) or"},{"line_number":196,"context_line":"                not is_firewall_enabled()):"},{"line_number":197,"context_line":"                LOG.info(_LI(\"Skipping method %s as firewall is disabled \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_e63fdb85","line":194,"updated":"2014-12-29 16:59:43.000000000","message":"Dumb question: why is the mark located here and not above func() call (as in other cases)?","commit_id":"77a54013e58d53e64d3008d9c64ecb3df617ce0b"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"acaa5793017c7b7bd6b4567b361b1ad232420cf1","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    def skip_if_noopfirewall_or_firewall_disabled(func):"},{"line_number":192,"context_line":"        @functools.wraps(func)"},{"line_number":193,"context_line":"        def decorated_function(self, *args, **kwargs):"},{"line_number":194,"context_line":"            # pylint: disable\u003dnot-callable"},{"line_number":195,"context_line":"            if (isinstance(self.firewall, firewall.NoopFirewallDriver) or"},{"line_number":196,"context_line":"                not is_firewall_enabled()):"},{"line_number":197,"context_line":"                LOG.info(_LI(\"Skipping method %s as firewall is disabled \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_b6325af0","line":194,"in_reply_to":"3a961159_e63fdb85","updated":"2014-12-30 01:39:03.000000000","message":"pylint disables can either be a trailing comment on a particular line, or a \"block level\" comment like this one that disables for the rest of the \"block\" in which the comment appears.\n\n(A pylint block is roughly an indented section of code - it can be larger or smaller than a single python function)\n\nI believe I *should* be able to move this to immediately before the func() call but pylint still triggers if I do that.  I\u0027m being lazy and moved it up to this level without investigating why the block rules aren\u0027t matching the way I thought they worked in this case.","commit_id":"77a54013e58d53e64d3008d9c64ecb3df617ce0b"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"0a4970d70286133b30106a8b2dc37322687d9cd5","unresolved":false,"context_lines":[{"line_number":198,"context_line":"                         \"or configured as NoopFirewallDriver.\"),"},{"line_number":199,"context_line":"                         func.__name__)"},{"line_number":200,"context_line":"            else:"},{"line_number":201,"context_line":"                return func(self, *args, **kwargs)"},{"line_number":202,"context_line":"        return decorated_function"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    @skip_if_noopfirewall_or_firewall_disabled"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_3634aa49","line":201,"updated":"2014-12-30 14:59:15.000000000","message":"Instead of line 194, you could do this:\n\n        return func(self,  # pylint: disable\u003dnot-callable\n                    *args,\n                    **kwargs)","commit_id":"ae3e8b9ef8821ec1ca4eace553cb3f21f2b6058d"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"01548c1eca40befad6c351efd692065cf919bed2","unresolved":false,"context_lines":[{"line_number":198,"context_line":"                         \"or configured as NoopFirewallDriver.\"),"},{"line_number":199,"context_line":"                         func.__name__)"},{"line_number":200,"context_line":"            else:"},{"line_number":201,"context_line":"                return func(self, *args, **kwargs)"},{"line_number":202,"context_line":"        return decorated_function"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    @skip_if_noopfirewall_or_firewall_disabled"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_041f6371","line":201,"in_reply_to":"3a961159_04f3e3e7","updated":"2014-12-31 04:30:23.000000000","message":"Ignore that, I mistyped the disable when trying it out ;)","commit_id":"ae3e8b9ef8821ec1ca4eace553cb3f21f2b6058d"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"1ac5b645b702c06a4e4f256fe655f89272bc0adc","unresolved":false,"context_lines":[{"line_number":198,"context_line":"                         \"or configured as NoopFirewallDriver.\"),"},{"line_number":199,"context_line":"                         func.__name__)"},{"line_number":200,"context_line":"            else:"},{"line_number":201,"context_line":"                return func(self, *args, **kwargs)"},{"line_number":202,"context_line":"        return decorated_function"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    @skip_if_noopfirewall_or_firewall_disabled"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_04f3e3e7","line":201,"in_reply_to":"3a961159_3634aa49","updated":"2014-12-31 03:23:44.000000000","message":"Alas, this raises a bad-inline-option pylint warning and is ignored.","commit_id":"ae3e8b9ef8821ec1ca4eace553cb3f21f2b6058d"}]}
