diff contrib/check-code.py @ 14267:6332c02b3d68

check-code: complain about set.isdisjoint
author Matt Mackall <mpm@selenic.com>
date Sun, 08 May 2011 11:39:24 -0500
parents b230922eb0c3
children e2be0bba0d83
line wrap: on
line diff
--- a/contrib/check-code.py	Sun May 01 12:29:32 2011 +0200
+++ b/contrib/check-code.py	Sun May 08 11:39:24 2011 -0500
@@ -139,6 +139,7 @@
     (r'[\x80-\xff]', "non-ASCII character literal"),
     (r'("\')\.format\(', "str.format() not available in Python 2.4"),
     (r'^\s*with\s+', "with not available in Python 2.4"),
+    (r'\.isdisjoint\(', "set.isdisjoint not available in Python 2.4"),
     (r'^\s*except.* as .*:', "except as not available in Python 2.4"),
     (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"),
     (r'(?<!def)\s+(any|all|format)\(',