简体   繁体   中英

Exception of an indent block if it isn't needed? Python

I'm currently writing some code, nothing special, but then i got this while trying to fix indents.

File "/data/data/com.termux/files/home/ttc2/main.py", line 67
return await asyncio.gather(*[self._check(sess, u) for u in self.to_check])
                                                        ^
IndentationError: expected an indented block after 'with' statement on line 66

Now, I'm confused where the indent is required, could anyone help?

Please post the code so we could help you, anywho

you should make an indentation after using with

with open(filename,mode) as w:
    w.write('hello')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM