equal
deleted
inserted
replaced
56 if use_mmap: |
56 if use_mmap: |
57 data = util.buffer(util.mmapread(fd, data_length)) |
57 data = util.buffer(util.mmapread(fd, data_length)) |
58 else: |
58 else: |
59 data = fd.read(data_length) |
59 data = fd.read(data_length) |
60 except OSError as e: |
60 except OSError as e: |
61 if e.errno != errno.ENOENT: |
61 if e.errno == errno.ENOENT: |
|
62 return None |
|
63 else: |
62 raise |
64 raise |
63 if len(data) < data_length: |
65 if len(data) < data_length: |
64 return None |
66 return None |
65 return docket, data |
67 return docket, data |
66 |
68 |