def copytimes(source, dest):
 st = os.stat(source)
 mode = stat.S_IMODE(st.st_mode)
 if hasattr(os, 'utime'):
  os.utime(dest, (st.st_atime, st.st_mtime))

def copytimes ( source , dest ) : st = os . stat ( source ) mode = stat . S_IMODE ( st . st_mode ) if hasattr ( os , 'utime' ) : os . utime ( dest , ( st . st_atime , st . st_mtime ) )
copy a files modification times .