def __init__ (self, fp, bdfpkldir='<STR_LIT>'):
self.fp = fp<EOL>self.mmdata = mmap.mmap (fp.fileno (), <NUM_LIT:0>, mmap.MAP_PRIVATE, mmap.PROT_READ)<EOL>if bdfpkldir:<EOL><INDENT>self.pklname = os.path.join(bdfpkldir, os.path.basename(self.fp.name) + '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self.pklname = '<STR_LIT>'<EOL><DEDENT>
fp is an open, seekable filestream.