comparison contrib/check-code.py @ 28700:35ad5bcdeb7e

py24: remove check-code py24 notation We require python2.6+
author timeless <timeless@mozdev.org>
date Wed, 30 Mar 2016 07:24:51 +0000
parents adda6dee600e
children c042b98a6ff8
comparison
equal deleted inserted replaced
28699:5cc59dbd199f 28700:35ad5bcdeb7e
12 when a rule triggers wrong, do one of the following (prefer one from top): 12 when a rule triggers wrong, do one of the following (prefer one from top):
13 * do the work-around the rule suggests 13 * do the work-around the rule suggests
14 * doublecheck that it is a false match 14 * doublecheck that it is a false match
15 * improve the rule pattern 15 * improve the rule pattern
16 * add an ignore pattern to the rule (3rd arg) which matches your good line 16 * add an ignore pattern to the rule (3rd arg) which matches your good line
17 (you can append a short comment and match this, like: #re-raises, # no-py24) 17 (you can append a short comment and match this, like: #re-raises)
18 * change the pattern to a warning and list the exception in test-check-code-hg 18 * change the pattern to a warning and list the exception in test-check-code-hg
19 * ONLY use no--check-code for skipping entire files from external sources 19 * ONLY use no--check-code for skipping entire files from external sources
20 """ 20 """
21 21
22 from __future__ import absolute_import, print_function 22 from __future__ import absolute_import, print_function