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:41:08 +0200 |
commit | b73afc8e3d89df143ce686c7086939710ebf29c3 (patch) | |
tree | ad0c3408f0666b6fb31723e23e4ab65bcb61bb5f | |
parent | fe7262d625cca6fbf12210c41a9de9a574cacb1a (diff) | |
download | pylint-git-b73afc8e3d89df143ce686c7086939710ebf29c3.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
@@ -30,6 +30,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 |