changeset 25180:3ff2a5dc7c20

check-code: drop ban of BaseException Lets go back to the basic. It is available in Python 2.6.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 13:20:19 -0500
parents 6dbbb4fa1892
children d26703eb3dc5
files contrib/check-code.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Mon May 18 13:25:07 2015 -0500
+++ b/contrib/check-code.py	Mon May 18 13:20:19 2015 -0500
@@ -269,7 +269,6 @@
      'hasattr(foo, bar) is broken, use util.safehasattr(foo, bar) instead'),
     (r'opener\([^)]*\).read\(',
      "use opener.read() instead"),
-    (r'BaseException', 'not in Python 2.4, use Exception'),
     (r'opener\([^)]*\).write\(',
      "use opener.write() instead"),
     (r'[\s\(](open|file)\([^)]*\)\.read\(',