)]}'
{"neutron/services/metering/agents/metering_agent.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"71952452a46f12289737605097698b4be2b5693a","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self.metering_infos \u003d {}"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # explicitly call both constructors"},{"line_number":96,"context_line":"        MeteringPluginRpc.__init__(self, host\u003dhost)"},{"line_number":97,"context_line":"        manager.Manager.__init__(self, host\u003dhost)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _load_drivers(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_dd56d75d","line":96,"updated":"2014-07-18 11:18:37.000000000","message":"Nit: Here could be left original super() instead.","commit_id":"59c66b52712930eeb9f290a5844e0f5ebe1cadc9"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"71952452a46f12289737605097698b4be2b5693a","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # explicitly call both constructors"},{"line_number":96,"context_line":"        MeteringPluginRpc.__init__(self, host\u003dhost)"},{"line_number":97,"context_line":"        manager.Manager.__init__(self, host\u003dhost)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _load_drivers(self):"},{"line_number":100,"context_line":"        \"\"\"Loads plugin-driver from configuration.\"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7d478ba3","line":97,"updated":"2014-07-18 11:18:37.000000000","message":"Don\u0027t you have to do the same in Manager class? Constructor of PeriodicTask doesn\u0027t seem to be called either.","commit_id":"59c66b52712930eeb9f290a5844e0f5ebe1cadc9"},{"author":{"_account_id":5950,"name":"Ilya Shakhat","email":"shakhat@gmail.com","username":"shakhat"},"change_message_id":"bd83a90b005fa1b439102b5c9ae5064dfe260e0d","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # explicitly call both constructors"},{"line_number":96,"context_line":"        MeteringPluginRpc.__init__(self, host\u003dhost)"},{"line_number":97,"context_line":"        manager.Manager.__init__(self, host\u003dhost)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _load_drivers(self):"},{"line_number":100,"context_line":"        \"\"\"Loads plugin-driver from configuration.\"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_32953d40","line":97,"in_reply_to":"baada198_7d478ba3","updated":"2014-07-18 11:53:37.000000000","message":"Good point! Manager class objects are initialized correctly because every base class constructor calls super().__init__() . This works because of Python\u0027s MRO that helps super to walk over all bases in case of multiple inheritance. \nSo, instead of explicit calling constructors of base classes the better solution would be to add super().__init__() call into RpcProxy constructor.","commit_id":"59c66b52712930eeb9f290a5844e0f5ebe1cadc9"}]}
