def chunkreadable(iter, chunk_size=65536):
 return (chunkiter(iter, chunk_size) if hasattr(iter, 'read') else iter)

def chunkreadable ( iter , chunk_size = 65536 ) : return ( chunkiter ( iter , chunk_size ) if hasattr ( iter , 'read' ) else iter )
wrap a readable iterator with a reader yielding chunks of a preferred size .