Closed ek-nath closed 6 years ago
import aiofiles print(aiofiles.__version__) async with aiofiles.open('wctDA2.tmp', mode='r') as f: contents = await f.read() print(contents)
Output:
File "a.py", line 4 async with aiofiles.open('wctDA2.tmp', mode='r') as f: ^ SyntaxError: invalid syntax
Details:
You can only have "async with" within "async def".
That's just dumb of me. Sorry and thank you.
Output:
Details: