)]}'
{"nova/utils.py":[{"author":{"_account_id":1812,"name":"p-draigbrady","email":"P@draigBrady.com","username":"p-draigbrady"},"change_message_id":"ee3f2b37f49e5335881669714f21cff7232d39a2","unresolved":false,"context_lines":[{"line_number":723,"context_line":"                        return tempfile.mkdtemp()"},{"line_number":724,"context_line":""},{"line_number":725,"context_line":"                    # NOTE(mikal): lock_path doesn\u0027t always appear in locals()"},{"line_number":726,"context_line":"                    lock_path \u003d locals().get(\u0027lock_path\u0027, None)"},{"line_number":727,"context_line":"                    if not lock_path:"},{"line_number":728,"context_line":"                        lock_path \u003d FLAGS.lock_path or wrap_mkdtemp()"},{"line_number":729,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2Fl4Y%3D","line":726,"updated":"2012-08-29 01:59:04.000000000","message":"heh, I think you\u0027re stumbling on the python wart handled by the \"nonlocal\" keyword in python 3. I.E. if you assign to lock_path, then a local variable of that scope is created and thus you can\u0027t reference the enclosing scope.\n\nhttp://stackoverflow.com/questions/3190706/nonlocal-keyword-in-python-2-x\n\nYou could use the solution above, or just instead do something like:\n\n    def inner(...):\n        inner_lock_path \u003d lock_path\n        ...","commit_id":"2758e574b879ca8c69aa631650135b5372554bd8"},{"author":{"_account_id":2271,"name":"Michael Still","email":"mikal@stillhq.com","username":"mikalstill"},"change_message_id":"3b1a26497226616e613dd002204a840a6ca5a3ff","unresolved":false,"context_lines":[{"line_number":723,"context_line":"                        return tempfile.mkdtemp()"},{"line_number":724,"context_line":""},{"line_number":725,"context_line":"                    # NOTE(mikal): lock_path doesn\u0027t always appear in locals()"},{"line_number":726,"context_line":"                    lock_path \u003d locals().get(\u0027lock_path\u0027, None)"},{"line_number":727,"context_line":"                    if not lock_path:"},{"line_number":728,"context_line":"                        lock_path \u003d FLAGS.lock_path or wrap_mkdtemp()"},{"line_number":729,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2Flvo%3D","line":726,"in_reply_to":"AAAALH%2F%2Fl4Y%3D","updated":"2012-08-29 11:29:30.000000000","message":"Wow. Thanks. I spent ages trying to find a solution to this...","commit_id":"2758e574b879ca8c69aa631650135b5372554bd8"}]}
