# HG changeset patch # User Matt Mackall # Date 2011-05-08 16:39:24 # Node ID 6332c02b3d687db5cf634f09ebb64714f53c42cf # Parent e4ab5ae193f21cb02c9a06dcde1d28c5665af3d7 check-code: complain about set.isdisjoint diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -139,6 +139,7 @@ pypats = [ (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'(?