author | Matt Mackall <mpm@selenic.com> |
Fri, 21 Oct 2011 16:52:23 -0500 | |
branch | stable |
changeset 15334 | 24856af7237c |
parent 15333 | f37b71fec602 |
child 15335 | 52a137edc060 |
--- a/contrib/check-code.py Fri Oct 21 16:52:16 2011 -0500 +++ b/contrib/check-code.py Fri Oct 21 16:52:23 2011 -0500 @@ -176,6 +176,8 @@ 'hasattr(foo, bar) is broken, use util.safehasattr(foo, bar) instead'), (r'opener\([^)]*\).read\(', "use opener.read() instead"), + (r'BaseException', 'not in Py2.4, use Exception'), + (r'os\.path\.relpath', 'os.path.relpath is not in Py2.5'), (r'opener\([^)]*\).write\(', "use opener.write() instead"), (r'[\s\(](open|file)\([^)]*\)\.read\(',