def __init__(self, ref, filename, chunk_size=None, must_close=False): self.ref = ref self.filename = filename self.chunk_size = chunk_size self.must_close = must_close self.fp = open(self.filename, "r") skypy.add_ref_dependency(self.ref)
def __init__(self, ref, filename, initial_size, chunk_size): self.ref = ref self.filename = filename self.chunk_size = chunk_size self.really_eof = False self.current_size = None self.fp = open(self.filename, "r") self.closed = False self.softspace = False skypy.add_ref_dependency(self.ref)