)]}'
{"neutron/api/extensions.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":662,"context_line":""},{"line_number":663,"context_line":"        collection_actions \u003d collection_actions or {}"},{"line_number":664,"context_line":"        member_actions \u003d member_actions or {}"},{"line_number":665,"context_line":"        attr_map \u003d attr_map or {}"},{"line_number":666,"context_line":"        self.collection \u003d collection"},{"line_number":667,"context_line":"        self.controller \u003d controller"},{"line_number":668,"context_line":"        self.parent \u003d parent"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_f8b1f8e1","line":665,"updated":"2014-07-03 07:35:28.000000000","message":"Three lines above are not needed.","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"f9c32e8620cb5179bbd8e5e933cf316d7938fbb3","unresolved":false,"context_lines":[{"line_number":662,"context_line":""},{"line_number":663,"context_line":"        collection_actions \u003d collection_actions or {}"},{"line_number":664,"context_line":"        member_actions \u003d member_actions or {}"},{"line_number":665,"context_line":"        attr_map \u003d attr_map or {}"},{"line_number":666,"context_line":"        self.collection \u003d collection"},{"line_number":667,"context_line":"        self.controller \u003d controller"},{"line_number":668,"context_line":"        self.parent \u003d parent"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_ce038e0b","line":665,"in_reply_to":"baada198_f8b1f8e1","updated":"2014-07-03 08:37:45.000000000","message":"Done","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":666,"context_line":"        self.collection \u003d collection"},{"line_number":667,"context_line":"        self.controller \u003d controller"},{"line_number":668,"context_line":"        self.parent \u003d parent"},{"line_number":669,"context_line":"        self.collection_actions \u003d collection_actions"},{"line_number":670,"context_line":"        self.member_actions \u003d member_actions"},{"line_number":671,"context_line":"        self.path_prefix \u003d path_prefix"},{"line_number":672,"context_line":"        self.attr_map \u003d attr_map"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_589f4450","line":669,"updated":"2014-07-03 07:35:28.000000000","message":"self.collection_actions \u003d collection_actions or {}","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"f9c32e8620cb5179bbd8e5e933cf316d7938fbb3","unresolved":false,"context_lines":[{"line_number":666,"context_line":"        self.collection \u003d collection"},{"line_number":667,"context_line":"        self.controller \u003d controller"},{"line_number":668,"context_line":"        self.parent \u003d parent"},{"line_number":669,"context_line":"        self.collection_actions \u003d collection_actions"},{"line_number":670,"context_line":"        self.member_actions \u003d member_actions"},{"line_number":671,"context_line":"        self.path_prefix \u003d path_prefix"},{"line_number":672,"context_line":"        self.attr_map \u003d attr_map"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_8b026809","line":669,"in_reply_to":"baada198_589f4450","updated":"2014-07-03 08:37:45.000000000","message":"Done","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":667,"context_line":"        self.controller \u003d controller"},{"line_number":668,"context_line":"        self.parent \u003d parent"},{"line_number":669,"context_line":"        self.collection_actions \u003d collection_actions"},{"line_number":670,"context_line":"        self.member_actions \u003d member_actions"},{"line_number":671,"context_line":"        self.path_prefix \u003d path_prefix"},{"line_number":672,"context_line":"        self.attr_map \u003d attr_map"},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_78aec886","line":670,"updated":"2014-07-03 07:35:28.000000000","message":"ditto","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"f9c32e8620cb5179bbd8e5e933cf316d7938fbb3","unresolved":false,"context_lines":[{"line_number":667,"context_line":"        self.controller \u003d controller"},{"line_number":668,"context_line":"        self.parent \u003d parent"},{"line_number":669,"context_line":"        self.collection_actions \u003d collection_actions"},{"line_number":670,"context_line":"        self.member_actions \u003d member_actions"},{"line_number":671,"context_line":"        self.path_prefix \u003d path_prefix"},{"line_number":672,"context_line":"        self.attr_map \u003d attr_map"},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_ae001a02","line":670,"in_reply_to":"baada198_78aec886","updated":"2014-07-03 08:37:45.000000000","message":"Done","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":669,"context_line":"        self.collection_actions \u003d collection_actions"},{"line_number":670,"context_line":"        self.member_actions \u003d member_actions"},{"line_number":671,"context_line":"        self.path_prefix \u003d path_prefix"},{"line_number":672,"context_line":"        self.attr_map \u003d attr_map"},{"line_number":673,"context_line":""},{"line_number":674,"context_line":""},{"line_number":675,"context_line":"# Returns the extension paths from a config entry and the __path__"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_b8b780d7","line":672,"updated":"2014-07-03 07:35:28.000000000","message":"ditto","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"f9c32e8620cb5179bbd8e5e933cf316d7938fbb3","unresolved":false,"context_lines":[{"line_number":669,"context_line":"        self.collection_actions \u003d collection_actions"},{"line_number":670,"context_line":"        self.member_actions \u003d member_actions"},{"line_number":671,"context_line":"        self.path_prefix \u003d path_prefix"},{"line_number":672,"context_line":"        self.attr_map \u003d attr_map"},{"line_number":673,"context_line":""},{"line_number":674,"context_line":""},{"line_number":675,"context_line":"# Returns the extension paths from a config entry and the __path__"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_ee0a1220","line":672,"in_reply_to":"baada198_b8b780d7","updated":"2014-07-03 08:37:45.000000000","message":"Done","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"}],"neutron/hacking/checks.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"12610c9161c52dda929740fa9554ff29841e0877","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"def no_mutable_default_args(logical_line):"},{"line_number":51,"context_line":"    msg \u003d \"N322: Method\u0027s default argument shouldn\u0027t be mutable!\""},{"line_number":52,"context_line":"    if mutable_default_args.match(logical_line):"},{"line_number":53,"context_line":"        yield (0, msg)"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_955e2c75","line":51,"updated":"2014-07-02 10:52:38.000000000","message":"Consider adding noqa check as at #43","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"a95a100e7f1db8eb552a67a410664c57149153cd","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"def no_mutable_default_args(logical_line):"},{"line_number":51,"context_line":"    msg \u003d \"N322: Method\u0027s default argument shouldn\u0027t be mutable!\""},{"line_number":52,"context_line":"    if mutable_default_args.match(logical_line):"},{"line_number":53,"context_line":"        yield (0, msg)"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_f42aea7c","line":51,"in_reply_to":"baada198_955e2c75","updated":"2014-07-03 01:34:57.000000000","message":"Done","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"315589f97384fa054d3e98dbac58cf6152ba1f6f","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"def no_mutable_default_args(logical_line):"},{"line_number":51,"context_line":"    if pep8.noqa(logical_line):"},{"line_number":52,"context_line":"        return"},{"line_number":53,"context_line":"    msg \u003d \"N322: Method\u0027s default argument shouldn\u0027t be mutable!\""},{"line_number":54,"context_line":"    if mutable_default_args.match(logical_line):"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_9c29738c","line":51,"updated":"2014-07-07 11:13:33.000000000","message":"can you please clarify why we need this line? this means that whoever adds in the # noqa will skip the check.\nAre there places in the code that this is possible?","commit_id":"1f1b9a8941915fe519eb15b0e373bb6e5e25820d"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"5f2552e612d582fb8aed8fd8f19a258fd7ff2838","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"def no_mutable_default_args(logical_line):"},{"line_number":51,"context_line":"    if pep8.noqa(logical_line):"},{"line_number":52,"context_line":"        return"},{"line_number":53,"context_line":"    msg \u003d \"N322: Method\u0027s default argument shouldn\u0027t be mutable!\""},{"line_number":54,"context_line":"    if mutable_default_args.match(logical_line):"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_9c8b331e","line":51,"in_reply_to":"baada198_9c29738c","updated":"2014-07-07 11:27:35.000000000","message":"This ensure the integrity of this hacking rule, like other rules, even there is no \"# noqa\" of this rule after applying this change, but I think it is better to provide the \"# noqa\" support, maybe it need in future, do you think?","commit_id":"1f1b9a8941915fe519eb15b0e373bb6e5e25820d"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"40e924ea893a59a585b0d6037010ae1a542b88c9","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"def no_mutable_default_args(logical_line):"},{"line_number":51,"context_line":"    if pep8.noqa(logical_line):"},{"line_number":52,"context_line":"        return"},{"line_number":53,"context_line":"    msg \u003d \"N322: Method\u0027s default argument shouldn\u0027t be mutable!\""},{"line_number":54,"context_line":"    if mutable_default_args.match(logical_line):"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_09f3640a","line":51,"in_reply_to":"baada198_9c8b331e","updated":"2014-07-07 12:19:01.000000000","message":"I agree it is better to have it available. Whoever adds a #noqa to their code should be thoroughly interrogated by reviewers and have an iron-clad reason before getting approval.","commit_id":"1f1b9a8941915fe519eb15b0e373bb6e5e25820d"}],"neutron/plugins/bigswitch/servermanager.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"9bc2f5e35b0981ba1b2a8b6b14cc8a57e24caf52","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    def rest_call(self, action, resource, data\u003d\u0027\u0027, headers\u003dNone,"},{"line_number":124,"context_line":"                  timeout\u003dFalse, reconnect\u003dFalse, hash_handler\u003dNone):"},{"line_number":125,"context_line":"        headers \u003d headers or {}"},{"line_number":126,"context_line":"        uri \u003d self.base_uri + resource"},{"line_number":127,"context_line":"        body \u003d json.dumps(data)"},{"line_number":128,"context_line":"        if not headers:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_9bd04855","line":125,"updated":"2014-07-01 12:21:41.000000000","message":"This line is unnecessary. 128-129 already do this.","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"b67731ac1d61a65709a970d7e00852e79501a200","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    def rest_call(self, action, resource, data\u003d\u0027\u0027, headers\u003dNone,"},{"line_number":124,"context_line":"                  timeout\u003dFalse, reconnect\u003dFalse, hash_handler\u003dNone):"},{"line_number":125,"context_line":"        headers \u003d headers or {}"},{"line_number":126,"context_line":"        uri \u003d self.base_uri + resource"},{"line_number":127,"context_line":"        body \u003d json.dumps(data)"},{"line_number":128,"context_line":"        if not headers:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_a7995121","line":125,"in_reply_to":"baada198_9bd04855","updated":"2014-07-02 08:06:51.000000000","message":"thanks, Done","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"}],"neutron/plugins/embrane/agent/dispatcher.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"e32ef03fc12c9ec0360df1c36326f74163c7e7c4","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        self._plugin \u003d plugin"},{"line_number":36,"context_line":"        self.sync_items \u003d dict()"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def dispatch_l3(self, d_context, args\u003d(), kwargs\u003dNone):"},{"line_number":39,"context_line":"        kwargs \u003d kwargs or {}"},{"line_number":40,"context_line":"        item \u003d d_context.item"},{"line_number":41,"context_line":"        event \u003d d_context.event"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_2c23d6a7","line":38,"updated":"2014-07-07 12:44:04.000000000","message":"This is the wrong fix. Should be:\n\ndef dispatch_l3(self, d_context, *args, **kwargs)","commit_id":"1f1b9a8941915fe519eb15b0e373bb6e5e25820d"}],"neutron/plugins/embrane/agent/operations/router_operations.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"9bc2f5e35b0981ba1b2a8b6b14cc8a57e24caf52","unresolved":false,"context_lines":[{"line_number":71,"context_line":"def _update_dva_and_assign_address(api, tenant_id, neutron_router,"},{"line_number":72,"context_line":"                                   utif_info\u003dNone, ip_allocation_info\u003dNone,"},{"line_number":73,"context_line":"                                   routes_info\u003dNone):"},{"line_number":74,"context_line":"    routes_info \u003d routes_info or []"},{"line_number":75,"context_line":"    name \u003d neutron_router[\"name\"]"},{"line_number":76,"context_line":"    up \u003d neutron_router[\"admin_state_up\"]"},{"line_number":77,"context_line":"    r_id \u003d neutron_router[\"id\"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_1b20b848","line":74,"updated":"2014-07-01 12:21:41.000000000","message":"This isn\u0027t necessary. 85 will evaluate to False as if routes_info is None or [] and routes_info won\u0027t be used.","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"b67731ac1d61a65709a970d7e00852e79501a200","unresolved":false,"context_lines":[{"line_number":71,"context_line":"def _update_dva_and_assign_address(api, tenant_id, neutron_router,"},{"line_number":72,"context_line":"                                   utif_info\u003dNone, ip_allocation_info\u003dNone,"},{"line_number":73,"context_line":"                                   routes_info\u003dNone):"},{"line_number":74,"context_line":"    routes_info \u003d routes_info or []"},{"line_number":75,"context_line":"    name \u003d neutron_router[\"name\"]"},{"line_number":76,"context_line":"    up \u003d neutron_router[\"admin_state_up\"]"},{"line_number":77,"context_line":"    r_id \u003d neutron_router[\"id\"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_87bd2d6b","line":74,"in_reply_to":"baada198_1b20b848","updated":"2014-07-02 08:06:51.000000000","message":"Thanks, Done","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"}],"neutron/plugins/embrane/common/operation.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"9bc2f5e35b0981ba1b2a8b6b14cc8a57e24caf52","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    \"\"\""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def __init__(self, procedure, args\u003d(), kwargs\u003d{}, nextop\u003dNone):"},{"line_number":27,"context_line":"        kwargs \u003d kwargs or {}"},{"line_number":28,"context_line":"        self._procedure \u003d procedure"},{"line_number":29,"context_line":"        self.args \u003d args[:]"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_9bd3e837","line":26,"updated":"2014-07-01 12:21:41.000000000","message":"I think you forgot kwargs\u003dNone","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"b67731ac1d61a65709a970d7e00852e79501a200","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    \"\"\""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def __init__(self, procedure, args\u003d(), kwargs\u003d{}, nextop\u003dNone):"},{"line_number":27,"context_line":"        kwargs \u003d kwargs or {}"},{"line_number":28,"context_line":"        self._procedure \u003d procedure"},{"line_number":29,"context_line":"        self.args \u003d args[:]"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_c76e4501","line":26,"in_reply_to":"baada198_9bd3e837","updated":"2014-07-02 08:06:51.000000000","message":"my fault :(","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"}],"neutron/plugins/ml2/drivers/cisco/apic/apic_client.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"df2b74c73a9880e2c1613b1b9265dc989fa2a0bc","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # Note(Henry): The use of a mutable default argument _inst_cache is"},{"line_number":121,"context_line":"    # intentional. It persists for the life of MoClass to cache instances."},{"line_number":122,"context_line":"    # noinspection PyDefaultArgument"},{"line_number":123,"context_line":"    def __new__(cls, mo_class, _inst_cache\u003dNone):"},{"line_number":124,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":125,"context_line":"        _inst_cache \u003d _inst_cache or {}"},{"line_number":126,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_3b1d7c10","line":123,"updated":"2014-07-01 12:22:30.000000000","message":"Please read the comment above and the docstring below. The mutable is being used deliberately here. Please do not make this change.","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"b67731ac1d61a65709a970d7e00852e79501a200","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # Note(Henry): The use of a mutable default argument _inst_cache is"},{"line_number":121,"context_line":"    # intentional. It persists for the life of MoClass to cache instances."},{"line_number":122,"context_line":"    # noinspection PyDefaultArgument"},{"line_number":123,"context_line":"    def __new__(cls, mo_class, _inst_cache\u003dNone):"},{"line_number":124,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":125,"context_line":"        _inst_cache \u003d _inst_cache or {}"},{"line_number":126,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_8a00d402","line":123,"in_reply_to":"baada198_3b1d7c10","updated":"2014-07-02 08:06:51.000000000","message":"if I need add a hacking check according Oleg Bondarev\u0027s comments, here will be checked  failed, so this change is needed.","commit_id":"06242ce958e4528aebc90521f31f9c63a1c4fd5f"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"12610c9161c52dda929740fa9554ff29841e0877","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    _inst_cache \u003d {}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_b5db30ec","line":122,"updated":"2014-07-02 10:52:38.000000000","message":"noqa can be used here and no change will be needed","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"6a666c11831e4489227c076aecd407cbffbf78bc","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    _inst_cache \u003d {}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_5455564e","line":122,"in_reply_to":"baada198_b48cf280","updated":"2014-07-03 13:15:03.000000000","message":"Yes, I am the original author of this module and I am agreeing that your change is good. So no need for #noqa here.","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"a95a100e7f1db8eb552a67a410664c57149153cd","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    _inst_cache \u003d {}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_b48cf280","line":122,"in_reply_to":"baada198_b5db30ec","updated":"2014-07-03 01:34:57.000000000","message":"Hi, this change is equivalent to previous code, and this is more clear, so this should we need noqa?","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"7c248cae86e1e47285eb901ed33edaf901b5d9ef","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    _inst_cache \u003d {}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_27837257","line":122,"in_reply_to":"baada198_b5db30ec","updated":"2014-07-02 13:01:04.000000000","message":"I am OK with using a class variable for the cache.","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"},{"line_number":126,"context_line":"            new_inst \u003d super(ManagedObjectClass, cls).__new__(cls)"},{"line_number":127,"context_line":"            new_inst.__init__(mo_class)"},{"line_number":128,"context_line":"            cls._inst_cache[mo_class] \u003d new_inst"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_78596859","line":125,"updated":"2014-07-03 07:35:28.000000000","message":"The semantic is changed here. If _inst_cache would contain object that\u0027s evaluated as False, new instance is created. I think either try-except shouldn\u0027t be changed or\n\n if mo_class not in cls._inst_cache:","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"6b04b3ebda1735023dff81e581c0abd3a8963b34","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"},{"line_number":126,"context_line":"            new_inst \u003d super(ManagedObjectClass, cls).__new__(cls)"},{"line_number":127,"context_line":"            new_inst.__init__(mo_class)"},{"line_number":128,"context_line":"            cls._inst_cache[mo_class] \u003d new_inst"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_3a3fcfd7","line":125,"in_reply_to":"baada198_1d15af3f","updated":"2014-07-03 16:19:33.000000000","message":"Yeah, that\u0027s why I wrote semantic :)","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"f9c32e8620cb5179bbd8e5e933cf316d7938fbb3","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"},{"line_number":126,"context_line":"            new_inst \u003d super(ManagedObjectClass, cls).__new__(cls)"},{"line_number":127,"context_line":"            new_inst.__init__(mo_class)"},{"line_number":128,"context_line":"            cls._inst_cache[mo_class] \u003d new_inst"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_0e5f4673","line":125,"in_reply_to":"baada198_78596859","updated":"2014-07-03 08:37:45.000000000","message":"IMHO, I think the try-except base on the defaut \"[]\" statements is extreme obscure.\nI prefer your suggestion of the if judgement :)\n\nthanks a lot","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"70cb33ff7cee0effcaf4d6302fa3f304c7982b54","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def __new__(cls, mo_class):"},{"line_number":123,"context_line":"        \"\"\"Ensure we create only one instance per mo_class.\"\"\""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not cls._inst_cache.get(mo_class):"},{"line_number":126,"context_line":"            new_inst \u003d super(ManagedObjectClass, cls).__new__(cls)"},{"line_number":127,"context_line":"            new_inst.__init__(mo_class)"},{"line_number":128,"context_line":"            cls._inst_cache[mo_class] \u003d new_inst"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_1d15af3f","line":125,"in_reply_to":"baada198_78596859","updated":"2014-07-03 13:15:40.000000000","message":"Instances cannot currently evaluate to False, but thanks for catching this.","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"}],"neutron/tests/unit/extension_stubs.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def __init__(self, supported_extensions\u003dNone):"},{"line_number":46,"context_line":"        supported_extensions \u003d supported_extensions or []"},{"line_number":47,"context_line":"        self.supported_extension_aliases \u003d supported_extensions"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class ExtensionExpectingPluginInterface(StubExtension):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_386e1030","line":47,"updated":"2014-07-03 07:35:28.000000000","message":"self.supported_extension_aliases \u003d supported_extensions or []","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"}],"neutron/tests/unit/ml2/test_mechanism_odl.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"34df44d88e55a66980ed4e45183c564c0227f125","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            self.check_sendjson)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def check_sendjson(self, method, urlpath, obj, ignorecodes\u003dNone):"},{"line_number":51,"context_line":"        ignorecodes \u003d ignorecodes or []"},{"line_number":52,"context_line":"        self.assertFalse(urlpath.startswith(\"http://\"))"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def test_check_segment(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_51910b98","line":51,"updated":"2014-07-02 09:12:38.000000000","message":"this seems unused","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"a95a100e7f1db8eb552a67a410664c57149153cd","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            self.check_sendjson)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def check_sendjson(self, method, urlpath, obj, ignorecodes\u003dNone):"},{"line_number":51,"context_line":"        ignorecodes \u003d ignorecodes or []"},{"line_number":52,"context_line":"        self.assertFalse(urlpath.startswith(\"http://\"))"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def test_check_segment(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_919460e3","line":51,"in_reply_to":"baada198_51910b98","updated":"2014-07-03 01:34:57.000000000","message":"Done","commit_id":"1fe956cd1992fff50487af7962b392ad8fa812c1"}],"neutron/tests/unit/test_api_v2.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"eff9742feb89d97392d85389fc6b51e7c5630d56","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        return fields"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def _get_collection_kwargs(self, skipargs\u003dNone, **kwargs):"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        skipargs \u003d skipargs or []"},{"line_number":144,"context_line":"        args_list \u003d [\u0027filters\u0027, \u0027fields\u0027, \u0027sorts\u0027, \u0027limit\u0027, \u0027marker\u0027,"},{"line_number":145,"context_line":"                     \u0027page_reverse\u0027]"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_f9170fec","line":142,"updated":"2014-07-04 07:02:04.000000000","message":"nit: blank line not needed","commit_id":"5f8c600c43f0a2d328205605109300971be09236"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"d1a028b5f1c0525e97c8f1fa33678e60fb5cab08","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        return fields"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def _get_collection_kwargs(self, skipargs\u003dNone, **kwargs):"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        skipargs \u003d skipargs or []"},{"line_number":144,"context_line":"        args_list \u003d [\u0027filters\u0027, \u0027fields\u0027, \u0027sorts\u0027, \u0027limit\u0027, \u0027marker\u0027,"},{"line_number":145,"context_line":"                     \u0027page_reverse\u0027]"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_f1939158","line":142,"in_reply_to":"baada198_f9170fec","updated":"2014-07-04 23:41:26.000000000","message":"would you mind removing it before we merge?","commit_id":"5f8c600c43f0a2d328205605109300971be09236"}],"neutron/tests/unit/test_extensions.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"df758a23eb3e901c2ba47c189ee8def704f20c41","unresolved":false,"context_lines":[{"line_number":41,"context_line":"class ExtensionsTestApp(wsgi.Router):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def __init__(self, options\u003dNone):"},{"line_number":44,"context_line":"        options \u003d options or {}"},{"line_number":45,"context_line":"        mapper \u003d routes.Mapper()"},{"line_number":46,"context_line":"        controller \u003d ext_stubs.StubBaseAppController()"},{"line_number":47,"context_line":"        mapper.resource(\"dummy_resource\", \"/dummy_resources\","}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_58fe6439","line":44,"updated":"2014-07-03 07:35:28.000000000","message":"I think this line is not needed since options is not used anywhere.","commit_id":"896b56455a16efe167bf21af96cc25a3af1096d8"}],"neutron/tests/unit/test_hacking.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"6eb9b530aaf43bc813b4c202968ca1cd4770cf7c","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            \"defined \u003d []\"))))"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self.assertEqual(0, len(list(checks.no_mutable_default_args("},{"line_number":56,"context_line":"            \"defined, undefined \u003d [], {}\"))))"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_74d7babf","line":56,"updated":"2014-07-03 02:01:06.000000000","message":"Add test: mutable arg with #noqa is ignored","commit_id":"9958366fd9e14a95eb20744497320e435d2231a1"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"f89d61d6a72b80f5a75f4b34add27f94c72373eb","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            \"defined \u003d []\"))))"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self.assertEqual(0, len(list(checks.no_mutable_default_args("},{"line_number":56,"context_line":"            \"defined, undefined \u003d [], {}\"))))"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_b7d794ec","line":56,"in_reply_to":"baada198_74d7babf","updated":"2014-07-03 02:46:35.000000000","message":"Done","commit_id":"9958366fd9e14a95eb20744497320e435d2231a1"}]}
