def copyfileobj(fsrc, fdst, length=(64 * 1024)):
 while True:
  buf = fsrc.read(length)
  if (not buf):
   break
  fdst.write(buf)

def copyfileobj ( fsrc , fdst , length = ( 64 * 1024 ) ) : while True : buf = fsrc . read ( length ) if ( not buf ) : break fdst . write ( buf )
copy length bytes from fileobj src to fileobj dst .