Closed mjpieters closed 4 years ago
The FileIO attributes .name and .mode are missing from the wrappers.
.name
.mode
So this works:
with open(filename) as f: print(f.name, f.mode)
This doesn't, resulting in attribute errors.
async with aiofiles.open(filename) as f: print(f.name, f.mode)
The FileIO attributes
.name
and.mode
are missing from the wrappers.So this works:
This doesn't, resulting in attribute errors.