parameters: (self, warn=True)
docstring: Empty the function's cache.
docstring_summary: Empty the function's cache.
docstring_tokens: Empty the function s cache .
function: def clear(self, warn=True):
          """ Empty the function's cache.
          """
          func_dir = self._get_func_dir(mkdir=False)
          if self._verbose and warn:
              self.warn("Clearing cache %s" % func_dir)
          if os.path.exists(func_dir):
              shutil.rmtree(func_dir, ignore_errors=True)
          mkdirp(func_dir)
          func_code, _, first_line = get_func_code(self.func)
          func_code_file = os.path.join(func_dir, 'func_code.py')
          self._write_func_code(func_code_file, func_code, first_line)
function_tokens: def clear ( self , warn = True ) : func_dir = self . _get_func_dir ( mkdir = False ) if self . _verbose and warn : self . warn ( "Clearing cache %s" % func_dir ) if os . path . exists ( func_dir ) : shutil . rmtree ( func_dir , ignore_errors = True ) mkdirp ( func_dir ) func_code , _ , first_line = get_func_code ( self . func ) func_code_file = os . path . join ( func_dir , 'func_code.py' ) self . _write_func_code ( func_code_file , func_code , first_line )