(fsrc, fdst, length=16*1024)
copy data from file-like object fsrc to file-like object fdst
copy data from file-like object fsrc to file-like object fdst
copy data from file - like object fsrc to file - like object fdst
def copyfileobj(fsrc, fdst, length=16*1024):
    """copy data from file-like object fsrc to file-like object fdst"""
    while 1:
        buf = fsrc.read(length)
        if not buf:
            break
        fdst.write(buf)
def copyfileobj ( fsrc , fdst , length = 16 * 1024 ) : while 1 : buf = fsrc . read ( length ) if not buf : break fdst . write ( buf )