)]}'
{"openstack_requirements/update.py":[{"author":{"_account_id":12612,"name":"Sachi King","email":"nakato@nakato.io","username":"nakato"},"change_message_id":"39bdfaee4586a92c5665bcebaacfc5b698119698","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    for action in actions:"},{"line_number":172,"context_line":"        if type(action) is File:"},{"line_number":173,"context_line":"            with open(project[\u0027root\u0027] + \u0027/\u0027 + action.filename, \u0027wt\u0027) as f:"},{"line_number":174,"context_line":"                f.write(action.content)"},{"line_number":175,"context_line":"        elif type(action) is Verbose:"},{"line_number":176,"context_line":"            if verbose:"},{"line_number":177,"context_line":"                stdout.write(u\"%s\\n\" % (action.message,))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af86dd1_b62469af","line":174,"updated":"2015-06-12 06:55:59.000000000","message":"The docstring above suggests that if action.content is None the file will be deleted, but if you pass None to f.write() it will return a TypeError.\n\nMaybe os.remove if content type is None?","commit_id":"d0f82047f5436b9dafa711cc570fe7ead22c9ac4"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"35332d73c739f29a4d73106a209f90a7469bbe86","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    for action in actions:"},{"line_number":172,"context_line":"        if type(action) is File:"},{"line_number":173,"context_line":"            with open(project[\u0027root\u0027] + \u0027/\u0027 + action.filename, \u0027wt\u0027) as f:"},{"line_number":174,"context_line":"                f.write(action.content)"},{"line_number":175,"context_line":"        elif type(action) is Verbose:"},{"line_number":176,"context_line":"            if verbose:"},{"line_number":177,"context_line":"                stdout.write(u\"%s\\n\" % (action.message,))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af86dd1_08caeca1","line":174,"in_reply_to":"1af86dd1_b62469af","updated":"2015-06-12 14:39:19.000000000","message":"Aspirational code! thank you. Shall fix.","commit_id":"d0f82047f5436b9dafa711cc570fe7ead22c9ac4"}]}
