comparison contrib/check-code.py @ 16249:0d175ac527c1

pvec: introduce pvecs
author Matt Mackall <mpm@selenic.com>
date Mon, 12 Mar 2012 13:37:39 -0500
parents a6941d7033fa
children 42e95631887d
comparison
equal deleted inserted replaced
16248:51e6f318bdf1 16249:0d175ac527c1
167 "missing whitespace around operator"), 167 "missing whitespace around operator"),
168 (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s', 168 (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s',
169 "missing whitespace around operator"), 169 "missing whitespace around operator"),
170 (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', 170 (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
171 "missing whitespace around operator"), 171 "missing whitespace around operator"),
172 (r'[^+=*/!<>&| -](\s=|=\s)[^= ]', 172 (r'[^^+=*/!<>&| -](\s=|=\s)[^= ]',
173 "wrong whitespace around ="), 173 "wrong whitespace around ="),
174 (r'raise Exception', "don't raise generic exceptions"), 174 (r'raise Exception', "don't raise generic exceptions"),
175 (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"), 175 (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"),
176 (r' [=!]=\s+(True|False|None)', 176 (r' [=!]=\s+(True|False|None)',
177 "comparison with singleton, use 'is' or 'is not' instead"), 177 "comparison with singleton, use 'is' or 'is not' instead"),