nodes: 0, module; 1, function_definition; 2, function_name:get_text_contents; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, try_statement; 8, comment:"""Fetch the decoded text contents of a Unicode encoded Entry.
  
          Since this should return the text contents from the file
          system, we check to see into what sort of subclass we should
          morph this Entry."""; 9, block; 10, except_clause; 11, else_clause; 12, expression_statement; 13, attribute; 14, comment:# There was nothing on disk with which to disambiguate; 15, comment:# this entry.  Leave it as an Entry, but return a null; 16, comment:# string so calls to get_text_contents() in emitters and; 17, comment:# the like (e.g. in qt.py) don't have to disambiguate by; 18, comment:# hand or catch the exception.; 19, block; 20, block; 21, assignment; 22, attribute; 23, identifier:UserError; 24, return_statement; 25, return_statement; 26, identifier:self; 27, call; 28, identifier:SCons; 29, identifier:Errors; 30, string; 31, call; 32, attribute; 33, argument_list; 34, attribute; 35, argument_list; 36, identifier:self; 37, identifier:disambiguate; 38, keyword_argument; 39, identifier:self; 40, identifier:get_text_contents; 41, identifier:must_exist; 42, integer:1
code: def get_text_contents(self):
          """Fetch the decoded text contents of a Unicode encoded Entry.
  
          Since this should return the text contents from the file
          system, we check to see into what sort of subclass we should
          morph this Entry."""
          try:
              self = self.disambiguate(must_exist=1)
          except SCons.Errors.UserError:
              # There was nothing on disk with which to disambiguate
              # this entry.  Leave it as an Entry, but return a null
              # string so calls to get_text_contents() in emitters and
              # the like (e.g. in qt.py) don't have to disambiguate by
              # hand or catch the exception.
              return ''
          else:
              return self.get_text_contents()