mercurial/__init__.py
author Martin Geisler <mg@aragost.com>
Tue, 15 Jun 2010 09:51:52 +0200
changeset 11341 920a783e5f91
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
check-code: fix check for any/all function The old check would only detect any/all at the beginning of a line. The regexp was probably just modeled after the preceding regexp which (correctly) finds the 'with' keyword at the beginning of a line. We now complain about 'any(' and 'all(' anywhere in a line, unless it is preceded by 'def'. This allows us to define our own compatibility wrapper in util and use 'util.any(' in the code.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines: