parameters: (self)
return_statement: return modified
docstring: Returns whether the file was modified since the instance was
          created. Result is memoized.
docstring_summary: Returns whether the file was modified since the instance was
          created. Result is memoized.
docstring_tokens: Returns whether the file was modified since the instance was created . Result is memoized .
function: def modified(self):
          '''Returns whether the file was modified since the instance was
          created. Result is memoized.'''
          if hasattr(self, '_modified'):
              return self._modified
  
          modified = True
          if os.path.exists(self._path):
              if open(self._path, 'rb').read() == self._content:
                  modified = False
          self._modified = modified
          return modified
function_tokens: def modified ( self ) : if hasattr ( self , '_modified' ) : return self . _modified modified = True if os . path . exists ( self . _path ) : if open ( self . _path , 'rb' ) . read ( ) == self . _content : modified = False self . _modified = modified return modified