Lines Matching defs:File
12 of a file or an open file object. Only a readline() method is used
13 on the input file, only a write() method is used on the output file.
14 When using file names, the input and output file names may be the
47 class File:
48 """A simple fake file object that knows about limited read-ahead and
51 def __init__(self, file, boundary):
52 self.file = file
59 line = self.file.readline()
72 def __init__(self, file):
73 self.file = file
81 line = self.file.readline()
87 self.peek = self.file.readline()
184 nifile = File(ifile, multipart)
188 # premature end of file
221 nifile = File(ifile, None)
398 nifile = File(ifile, multipart)
402 # premature end of file
406 # unexpectedly no multipart separator--copy rest of file
429 nifile = File(ifile, None)