parameters: (self)
return_statement: return 'I have no idea what changed (there is a bug).'
docstring: Returns a human-readable description of what changed.
docstring_summary: Returns a human-readable description of what changed.
docstring_tokens: Returns a human - readable description of what changed .
function: def DescribeDifference(self):
      """Returns a human-readable description of what changed."""
      if self.force:
        return 'force=True'
      if self.missing_outputs:
        return 'Outputs do not exist:\n  ' + '\n  '.join(self.missing_outputs)
      if self.too_new:
        return 'Outputs newer than stamp file:\n  ' + '\n  '.join(self.too_new)
      if self.old_metadata is None:
        return 'Previous stamp file not found.'
  
      if self.old_metadata.StringsMd5() != self.new_metadata.StringsMd5():
        ndiff = difflib.ndiff(self.old_metadata.GetStrings(),
                              self.new_metadata.GetStrings())
        changed = [s for s in ndiff if not s.startswith(' ')]
        return 'Input strings changed:\n  ' + '\n  '.join(changed)
  
      if self.old_metadata.FilesMd5() == self.new_metadata.FilesMd5():
        return "There's no difference."
  
      lines = []
      lines.extend('Added: ' + p for p in self.IterAddedPaths())
      lines.extend('Removed: ' + p for p in self.IterRemovedPaths())
      for path in self.IterModifiedPaths():
        lines.append('Modified: ' + path)
        lines.extend('  -> Subpath added: ' + p
                     for p in self.IterAddedSubpaths(path))
        lines.extend('  -> Subpath removed: ' + p
                     for p in self.IterRemovedSubpaths(path))
        lines.extend('  -> Subpath modified: ' + p
                     for p in self.IterModifiedSubpaths(path))
      if lines:
        return 'Input files changed:\n  ' + '\n  '.join(lines)
      return 'I have no idea what changed (there is a bug).'
function_tokens: def DescribeDifference ( self ) : if self . force : return 'force=True' if self . missing_outputs : return 'Outputs do not exist:\n  ' + '\n  ' . join ( self . missing_outputs ) if self . too_new : return 'Outputs newer than stamp file:\n  ' + '\n  ' . join ( self . too_new ) if self . old_metadata is None : return 'Previous stamp file not found.' if self . old_metadata . StringsMd5 ( ) != self . new_metadata . StringsMd5 ( ) : ndiff = difflib . ndiff ( self . old_metadata . GetStrings ( ) , self . new_metadata . GetStrings ( ) ) changed = [ s for s in ndiff if not s . startswith ( ' ' ) ] return 'Input strings changed:\n  ' + '\n  ' . join ( changed ) if self . old_metadata . FilesMd5 ( ) == self . new_metadata . FilesMd5 ( ) : return "There's no difference." lines = [ ] lines . extend ( 'Added: ' + p for p in self . IterAddedPaths ( ) ) lines . extend ( 'Removed: ' + p for p in self . IterRemovedPaths ( ) ) for path in self . IterModifiedPaths ( ) : lines . append ( 'Modified: ' + path ) lines . extend ( '  -> Subpath added: ' + p for p in self . IterAddedSubpaths ( path ) ) lines . extend ( '  -> Subpath removed: ' + p for p in self . IterRemovedSubpaths ( path ) ) lines . extend ( '  -> Subpath modified: ' + p for p in self . IterModifiedSubpaths ( path ) ) if lines : return 'Input files changed:\n  ' + '\n  ' . join ( lines ) return 'I have no idea what changed (there is a bug).'