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 975fcc5
Show file tree
Hide file tree
Showing 3 changed files with 14 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
2 changes: 2 additions & 0 deletions doc/data/messages/c/continue-in-finally/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[testoptions]
max_pyver=3.8

0 comments on commit 975fcc5

Please sign in to comment.