parameters: (src, dst)
docstring: Copy data and mode bits ("cp src dst").
  
      The destination may be a directory.
docstring_summary: Copy data and mode bits ("cp src dst").
docstring_tokens: Copy data and mode bits ( cp src dst ) .
function: def copy(src, dst):
      """Copy data and mode bits ("cp src dst").
  
      The destination may be a directory.
  
      """
      if os.path.isdir(dst):
          dst = os.path.join(dst, os.path.basename(src))
      copyfile(src, dst)
      copymode(src, dst)
function_tokens: def copy ( src , dst ) : if os . path . isdir ( dst ) : dst = os . path . join ( dst , os . path . basename ( src ) ) copyfile ( src , dst ) copymode ( src , dst )