mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 05:14:29 +08:00
33 lines
473 B
Python
33 lines
473 B
Python
"""
|
|
Some syntax errors are a bit complicated and need exact checking. Here we
|
|
gather some of the potentially dangerous ones.
|
|
"""
|
|
|
|
for x in [1]:
|
|
try:
|
|
continue # Only the other continue and pass is an error.
|
|
finally:
|
|
#: E901
|
|
continue
|
|
|
|
|
|
for x in [1]:
|
|
break
|
|
continue
|
|
|
|
try:
|
|
pass
|
|
except ZeroDivisionError:
|
|
pass
|
|
#: E722:0
|
|
except:
|
|
pass
|
|
|
|
try:
|
|
pass
|
|
#: E722:0 E901:0
|
|
except:
|
|
pass
|
|
except ZeroDivisionError:
|
|
pass
|