329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 | |
def read(self, mode='rb'): |
""" read and return a bytestring from reading the path. """ |
if py.std.sys.version_info < (2,3): |
for x in 'u', 'U': |
if x in mode: |
mode = mode.replace(x, '') |
-> f = self.open(mode) |
try: |
return f.read() |
finally: |
f.close() | |