)]}'
{"heat/engine/resources/software_config/software_deployment.py":[{"author":{"_account_id":866,"name":"Chmouel Boudjnah","email":"chmouel@chmouel.com","username":"chmouel"},"change_message_id":"5011ed17e88c9c3a24b6c6aa3b6a38622154e45b","unresolved":false,"context_lines":[{"line_number":225,"context_line":"    def _check_complete(sd):"},{"line_number":226,"context_line":"        if not sd:"},{"line_number":227,"context_line":"            return True"},{"line_number":228,"context_line":"        # NOTE(dprince): when lazy loading the sd attributes"},{"line_number":229,"context_line":"        # we need to support multiple versions of heatclient"},{"line_number":230,"context_line":"        if hasattr(sd, \u0027get\u0027):"},{"line_number":231,"context_line":"            sd.get()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXH%2F%2Fvy0%3D","line":228,"updated":"2014-04-17 18:39:45.000000000","message":"usually it\u0027s better to ask for foregiveness than permission. i.e: using try: except TyepError than hasattr, see here :\n\nhttps://docs.python.org/2/glossary.html#term-eafp","commit_id":"a7d782395084c6c16304f17d14b824028c5ba450"}]}
