Skip to content

Commit

Permalink
Add continue-in-finally documentation examples based on the `pylint…
Browse files Browse the repository at this point in the history
…-errors project.

Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
  • Loading branch information
mbyrnepr2 and sprytnyk committed May 11, 2022
1 parent 7e1726f commit 7b0ae9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/data/messages/c/continue-in-finally/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
while True:
try:
pass
finally:
continue # [continue-in-finally]
7 changes: 7 additions & 0 deletions doc/data/messages/c/continue-in-finally/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
while True:
try:
pass
except ValueError:
pass
else:
continue

0 comments on commit 7b0ae9b

Please sign in to comment.