parameters: (src, dst)
docstring: Copy mode bits from src to dst
docstring_summary: Copy mode bits from src to dst
docstring_tokens: Copy mode bits from src to dst
function: def copymode(src, dst):
      """Copy mode bits from src to dst"""
      if hasattr(os, 'chmod'):
          st = os.stat(src)
          mode = stat.S_IMODE(st.st_mode)
          os.chmod(dst, mode)
function_tokens: def copymode ( src , dst ) : if hasattr ( os , 'chmod' ) : st = os . stat ( src ) mode = stat . S_IMODE ( st . st_mode ) os . chmod ( dst , mode )