##// END OF EJS Templates
check-code: catch BaseException and os.path.relpath
Matt Mackall -
r15334:24856af7 stable
parent child Browse files
Show More
@@ -176,6 +176,8 b' pypats = ['
176 'hasattr(foo, bar) is broken, use util.safehasattr(foo, bar) instead'),
176 'hasattr(foo, bar) is broken, use util.safehasattr(foo, bar) instead'),
177 (r'opener\([^)]*\).read\(',
177 (r'opener\([^)]*\).read\(',
178 "use opener.read() instead"),
178 "use opener.read() instead"),
179 (r'BaseException', 'not in Py2.4, use Exception'),
180 (r'os\.path\.relpath', 'os.path.relpath is not in Py2.5'),
179 (r'opener\([^)]*\).write\(',
181 (r'opener\([^)]*\).write\(',
180 "use opener.write() instead"),
182 "use opener.write() instead"),
181 (r'[\s\(](open|file)\([^)]*\)\.read\(',
183 (r'[\s\(](open|file)\([^)]*\)\.read\(',
General Comments 0
You need to be logged in to leave comments. Login now