parameters: (src, dst, *, follow_symlinks=True)
docstring: Copy mode bits from src to dst.
  
      If follow_symlinks is not set, symlinks aren't followed if and only
      if both `src` and `dst` are symlinks.  If `lchmod` isn't available
      (e.g. Linux) this method does nothing.
docstring_summary: Copy mode bits from src to dst.
docstring_tokens: Copy mode bits from src to dst .
function: def copymode(src, dst, *, follow_symlinks=True):
      """Copy mode bits from src to dst.
  
      If follow_symlinks is not set, symlinks aren't followed if and only
      if both `src` and `dst` are symlinks.  If `lchmod` isn't available
      (e.g. Linux) this method does nothing.
  
      """
      if not follow_symlinks and os.path.islink(src) and os.path.islink(dst):
          if hasattr(os, 'lchmod'):
              stat_func, chmod_func = os.lstat, os.lchmod
          else:
              return
      elif hasattr(os, 'chmod'):
          stat_func, chmod_func = os.stat, os.chmod
      else:
          return
  
      st = stat_func(src)
      chmod_func(dst, stat.S_IMODE(st.st_mode))
function_tokens: def copymode ( src , dst , * , follow_symlinks = True ) : if not follow_symlinks and os . path . islink ( src ) and os . path . islink ( dst ) : if hasattr ( os , 'lchmod' ) : stat_func , chmod_func = os . lstat , os . lchmod else : return elif hasattr ( os , 'chmod' ) : stat_func , chmod_func = os . stat , os . chmod else : return st = stat_func ( src ) chmod_func ( dst , stat . S_IMODE ( st . st_mode ) )