diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-09-04 01:53:07 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-09-04 01:53:07 +0300 |
commit | 20e9b6581038b21b13e6db6349a881027526ec3b (patch) | |
tree | bcc4991b04ae33bd5348d2581c3b725870a68578 /ChangeLog | |
parent | e0a6f98dca977ee29d34690877da8220467bc030 (diff) | |
download | pylint-20e9b6581038b21b13e6db6349a881027526ec3b.tar.gz |
Add a new error, 'misplaced-bare-raise'.
The error is used when a bare raise is not used inside a try suite.
This can generate a RuntimeError in Python, if there are no active exceptions
to be reraised. While it works in Python 2 due to the fact that the exception
leaks outside of the except block, it's nevertheless a behaviour that
an user shouldn't depend upon, since it's not obvious to the reader of the code
what exception will be raised and it will not be compatible with Python 3 anyhow.
Closes issue #633.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -264,7 +264,17 @@ ChangeLog for Pylint * --comment flag is obsoleted and it will be removed in Pylint 1.6. * --profile flag is obsoleted and it will be removed in Pylint 1.6. - + + * Add a new error, 'misplaced-bare-raise'. + + The error is used when a bare raise is not used inside a try suite. + This can generate a RuntimeError in Python, if there are no active exceptions + to be reraised. While it works in Python 2 due to the fact that the exception + leaks outside of the except block, it's nevertheless a behaviour that + an user shouldn't depend upon, since it's not obvious to the reader of the code + what exception will be raised and it will not be compatible with Python 3 anyhow. + Closes issue #633. + 2015-03-14 -- 1.4.3 |