diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-05-14 08:39:40 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-05-14 18:40:37 +0200 |
commit | 62edb5893b547d71651283f1b7c6c58b929a75da (patch) | |
tree | 5f841da0f12adac12c11d8300bd0b1c8919799dc | |
parent | dcb5148ef1456296b58d98d0fa83ab7b16dab372 (diff) | |
download | pylint-git-62edb5893b547d71651283f1b7c6c58b929a75da.tar.gz |
`continue-in-finally` no longer emitted on Python 3.8 where it's now valid
Close #3612
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | pylint/checkers/base.py | 1 | ||||
-rw-r--r-- | tests/functional/c/continue_in_finally.rc | 2 |
3 files changed, 7 insertions, 0 deletions
@@ -11,6 +11,10 @@ Release date: TBA Close #3600 +* `continue-in-finally` no longer emitted on Python 3.8 where it's now valid + + Close #3612 + What's New in Pylint 2.5.2? =========================== diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index fc8587e3d..582b0fdeb 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -541,6 +541,7 @@ class BasicErrorChecker(_BasicChecker): "continue-in-finally", "Emitted when the `continue` keyword is found " "inside a finally clause, which is a SyntaxError.", + {"maxversion": (3, 8)}, ), "E0117": ( "nonlocal name %s found without binding", diff --git a/tests/functional/c/continue_in_finally.rc b/tests/functional/c/continue_in_finally.rc new file mode 100644 index 000000000..67a28a36a --- /dev/null +++ b/tests/functional/c/continue_in_finally.rc @@ -0,0 +1,2 @@ +[testoptions] +max_pyver=3.8 |