parameters: (src, dest, logger=None)
return_statement: return False
docstring: Should a file be copied, if it doesn't exist, or is newer?
  
      Returns whether the file needs to be updated.
  
      Parameters
      ----------
  
      src : string
          A path that should exist from which to copy a file
      src : string
          A path that might exist to which to copy a file
      logger : Jupyter logger [optional]
          Logger instance to use
docstring_summary: Should a file be copied, if it doesn't exist, or is newer?
docstring_tokens: Should a file be copied if it doesn t exist or is newer?
function: def _should_copy(src, dest, logger=None):
      """Should a file be copied, if it doesn't exist, or is newer?
  
      Returns whether the file needs to be updated.
  
      Parameters
      ----------
  
      src : string
          A path that should exist from which to copy a file
      src : string
          A path that might exist to which to copy a file
      logger : Jupyter logger [optional]
          Logger instance to use
      """
      if not os.path.exists(dest):
          return True
      if os.stat(src).st_mtime - os.stat(dest).st_mtime > 1e-6:
          # we add a fudge factor to work around a bug in python 2.x
          # that was fixed in python 3.x: https://bugs.python.org/issue12904
          if logger:
              logger.warn("Out of date: %s" % dest)
          return True
      if logger:
          logger.info("Up to date: %s" % dest)
      return False
function_tokens: def _should_copy ( src , dest , logger = None ) : if not os . path . exists ( dest ) : return True if os . stat ( src ) . st_mtime - os . stat ( dest ) . st_mtime > 1e-6 : # we add a fudge factor to work around a bug in python 2.x # that was fixed in python 3.x: https://bugs.python.org/issue12904 if logger : logger . warn ( "Out of date: %s" % dest ) return True if logger : logger . info ( "Up to date: %s" % dest ) return False