summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-09-04 01:53:07 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-09-04 01:53:07 +0300
commit20e9b6581038b21b13e6db6349a881027526ec3b (patch)
treebcc4991b04ae33bd5348d2581c3b725870a68578 /ChangeLog
parente0a6f98dca977ee29d34690877da8220467bc030 (diff)
downloadpylint-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--ChangeLog12
1 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8fcb2ea..8678b84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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