parameters: (src, dst, log=None)
docstring: copy src to dst
  
      like shutil.copy2, but log errors in copystat instead of raising
docstring_summary: copy src to dst
docstring_tokens: copy src to dst
function: def copy2_safe(src, dst, log=None):
      """copy src to dst
  
      like shutil.copy2, but log errors in copystat instead of raising
      """
      shutil.copyfile(src, dst)
      try:
          shutil.copystat(src, dst)
      except OSError:
          if log:
              log.debug("copystat on %s failed", dst, exc_info=True)
function_tokens: def copy2_safe ( src , dst , log = None ) : shutil . copyfile ( src , dst ) try : shutil . copystat ( src , dst ) except OSError : if log : log . debug ( "copystat on %s failed" , dst , exc_info = True )