comparison contrib/check-code.py @ 48875:6000f5b25c9b

py2: remove simple from __future__ statements These were needed for Python 2 support. Now that our linter no longer mandates these, we can start deleting them. Differential Revision: https://phab.mercurial-scm.org/D12254
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 03 Mar 2022 17:34:00 +0100
parents df56e6bd37f6
children 82f1c46cce5c
comparison
equal deleted inserted replaced
48874:af0b21d5a930 48875:6000f5b25c9b
17 (you can append a short comment and match this, like: #re-raises) 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
23 import glob 22 import glob
24 import keyword 23 import keyword
25 import optparse 24 import optparse
26 import os 25 import os
27 import re 26 import re