# HG changeset patch # User Pierre-Yves David # Date 2015-05-18 18:20:19 # Node ID 3ff2a5dc7c20568f07016abdb8a5156e5b56366d # Parent 6dbbb4fa1892558229050c49fb738fd609a48b7f check-code: drop ban of BaseException Lets go back to the basic. It is available in Python 2.6. diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -269,7 +269,6 @@ pypats = [ '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\(',