)]}'
{"mistral/engine/action_queue.py":[{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"870a423ff51c09f111a5b6e355260e19f06685e6","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        )"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"def process():"},{"line_number":57,"context_line":"    \"\"\"Decorator that processes (runs) all actions in the action queue."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    Various engine methods may cause new actions to be scheduled. All"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5da102_c8000d37","line":56,"updated":"2016-11-03 07:40:51.000000000","message":"There is an extra level of wrapping here that you don\u0027t really need - because the decorator itself doesn\u0027t accept any args.","commit_id":"e177c19c983bb1d7c702afa949ca3dd1abc4e1c2"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"870a423ff51c09f111a5b6e355260e19f06685e6","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    such methods must be decorated with this decorator. It makes sure"},{"line_number":61,"context_line":"    to run all the actions in the queue and clean up the queue."},{"line_number":62,"context_line":"    \"\"\""},{"line_number":63,"context_line":"    def _decorator(func):"},{"line_number":64,"context_line":"        def decorate(*args, **kw):"},{"line_number":65,"context_line":"            _prepare()"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5da102_c86bad1c","line":63,"updated":"2016-11-03 07:40:51.000000000","message":"It would probably also be a good idea to use functools.wraps when we create decorators. Examples: http://codesearch.openstack.org/?q\u003dfunctools.wraps\u0026i\u003dnope\u0026files\u003d\u0026repos\u003d","commit_id":"e177c19c983bb1d7c702afa949ca3dd1abc4e1c2"}]}
