summaryrefslogtreecommitdiffstats
path: root/SCons/cpp.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-05-05 14:37:22 (GMT)
committerMats Wichmann <mats@linux.com>2021-05-05 17:33:26 (GMT)
commitd7b1df36e2faf84c2b1789658300ceef90605997 (patch)
tree19d526d9ba9a771f305578f852fa2e6d01894f59 /SCons/cpp.py
parentf046cf47ded412a0b96edb560ed7bb2daf72ccfb (diff)
downloadSCons-d7b1df36e2faf84c2b1789658300ceef90605997.zip
SCons-d7b1df36e2faf84c2b1789658300ceef90605997.tar.gz
SCons-d7b1df36e2faf84c2b1789658300ceef90605997.tar.bz2
Fix some imports and other checker warnings
* Removed a number of imports reported as unused. * Reorganize imports in a few places. * Checker reported warnings problems ("Instantiating an exception, but not raising it, has no effect"): serveral tool modules instantiated a warning class thinking (?) it would issue the warning; changed these to the standard use - calling the warn() function with the warnclass as an arg. * Tool modules that were touched had the copyright header munging applied. * Removed irritating "####" lines from gettext and msgfmt tools. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/cpp.py')
-rw-r--r--SCons/cpp.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/SCons/cpp.py b/SCons/cpp.py
index 65358b3..4c6b437 100644
--- a/SCons/cpp.py
+++ b/SCons/cpp.py
@@ -23,18 +23,14 @@
"""SCons C Pre-Processor module"""
-import SCons.compat
-
import os
import re
-#
# First "subsystem" of regular expressions that we set up:
#
# Stuff to turn the C preprocessor directives in a file's contents into
# a list of tuples that we can process easily.
#
-
# A table of regular expressions that fetch the arguments from the rest of
# a C preprocessor line. Different directives have different arguments
# that we want to fetch, using the regular expressions to which the lists