Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
14265:e4ab5ae193f2 | 14267:6332c02b3d68 |
---|---|
137 # (r'in range\(', "use xrange"), | 137 # (r'in range\(', "use xrange"), |
138 # (r'^\s*print\s+', "avoid using print in core and extensions"), | 138 # (r'^\s*print\s+', "avoid using print in core and extensions"), |
139 (r'[\x80-\xff]', "non-ASCII character literal"), | 139 (r'[\x80-\xff]', "non-ASCII character literal"), |
140 (r'("\')\.format\(', "str.format() not available in Python 2.4"), | 140 (r'("\')\.format\(', "str.format() not available in Python 2.4"), |
141 (r'^\s*with\s+', "with not available in Python 2.4"), | 141 (r'^\s*with\s+', "with not available in Python 2.4"), |
142 (r'\.isdisjoint\(', "set.isdisjoint not available in Python 2.4"), | |
142 (r'^\s*except.* as .*:', "except as not available in Python 2.4"), | 143 (r'^\s*except.* as .*:', "except as not available in Python 2.4"), |
143 (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"), | 144 (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"), |
144 (r'(?<!def)\s+(any|all|format)\(', | 145 (r'(?<!def)\s+(any|all|format)\(', |
145 "any/all/format not available in Python 2.4"), | 146 "any/all/format not available in Python 2.4"), |
146 (r'(?<!def)\s+(callable)\(', | 147 (r'(?<!def)\s+(callable)\(', |