summaryrefslogtreecommitdiffstats
path: root/SCons/Tool
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/Tool')
-rw-r--r--SCons/Tool/JavaCommonTests.py1
-rw-r--r--SCons/Tool/MSCommon/__init__.py4
-rw-r--r--SCons/Tool/MSCommon/arch.py1
-rw-r--r--SCons/Tool/MSCommon/vc.py1
-rw-r--r--SCons/Tool/ToolTests.py1
-rw-r--r--SCons/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py2
-rw-r--r--SCons/Tool/fortran.py1
-rw-r--r--SCons/Tool/gcc.py1
-rw-r--r--SCons/Tool/gxx.py3
-rw-r--r--SCons/Tool/intelc.py6
-rw-r--r--SCons/Tool/linkCommon/__init__.py1
-rw-r--r--SCons/Tool/linkloc.py1
-rw-r--r--SCons/Tool/msginit.py1
-rw-r--r--SCons/Tool/msvc.py2
-rw-r--r--SCons/Tool/packaging/rpm.py1
-rw-r--r--SCons/Tool/qt.py1
-rw-r--r--SCons/Tool/textfile.py2
-rw-r--r--SCons/Tool/wixTests.py1
18 files changed, 5 insertions, 26 deletions
diff --git a/SCons/Tool/JavaCommonTests.py b/SCons/Tool/JavaCommonTests.py
index 83354b8..f35cb9e 100644
--- a/SCons/Tool/JavaCommonTests.py
+++ b/SCons/Tool/JavaCommonTests.py
@@ -24,7 +24,6 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os.path
-import sys
import unittest
import fnmatch
diff --git a/SCons/Tool/MSCommon/__init__.py b/SCons/Tool/MSCommon/__init__.py
index be7720a..ee8f2bd 100644
--- a/SCons/Tool/MSCommon/__init__.py
+++ b/SCons/Tool/MSCommon/__init__.py
@@ -27,10 +27,6 @@ __doc__ = """
Common functions for Microsoft Visual Studio and Visual C/C++.
"""
-import copy
-import os
-import re
-import subprocess
import SCons.Errors
import SCons.Platform.win32
diff --git a/SCons/Tool/MSCommon/arch.py b/SCons/Tool/MSCommon/arch.py
index ba57a2c..0032422 100644
--- a/SCons/Tool/MSCommon/arch.py
+++ b/SCons/Tool/MSCommon/arch.py
@@ -26,7 +26,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
__doc__ = """Module to define supported Windows chip architectures.
"""
-import os
class ArchDefinition:
"""
diff --git a/SCons/Tool/MSCommon/vc.py b/SCons/Tool/MSCommon/vc.py
index 886288a..9a43ae1 100644
--- a/SCons/Tool/MSCommon/vc.py
+++ b/SCons/Tool/MSCommon/vc.py
@@ -43,7 +43,6 @@ import SCons.Util
import subprocess
import os
import platform
-import sys
from string import digits as string_digits
from subprocess import PIPE
diff --git a/SCons/Tool/ToolTests.py b/SCons/Tool/ToolTests.py
index b7c42b7..9a6d9b5 100644
--- a/SCons/Tool/ToolTests.py
+++ b/SCons/Tool/ToolTests.py
@@ -24,7 +24,6 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import sys
import unittest
import TestUnit
diff --git a/SCons/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py b/SCons/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py
index 3d53bf7..d79ece3 100644
--- a/SCons/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py
+++ b/SCons/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py
@@ -1,7 +1,5 @@
# docbook.py: extension module
# $Id: docbook.py 8353 2009-03-17 16:57:50Z mzjn $
-import sys
-import string
import libxml2
import libxslt
import re
diff --git a/SCons/Tool/fortran.py b/SCons/Tool/fortran.py
index aeb9130..0a68df6 100644
--- a/SCons/Tool/fortran.py
+++ b/SCons/Tool/fortran.py
@@ -33,7 +33,6 @@ selection method.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import re
import SCons.Action
import SCons.Defaults
diff --git a/SCons/Tool/gcc.py b/SCons/Tool/gcc.py
index d56f6a0..37626ef 100644
--- a/SCons/Tool/gcc.py
+++ b/SCons/Tool/gcc.py
@@ -34,7 +34,6 @@ selection method.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
from . import cc
-import os
import re
import subprocess
diff --git a/SCons/Tool/gxx.py b/SCons/Tool/gxx.py
index 4b86327..88186cb 100644
--- a/SCons/Tool/gxx.py
+++ b/SCons/Tool/gxx.py
@@ -33,9 +33,6 @@ selection method.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import os.path
-import re
-import subprocess
import SCons.Tool
import SCons.Util
diff --git a/SCons/Tool/intelc.py b/SCons/Tool/intelc.py
index 38bdc32..5025719 100644
--- a/SCons/Tool/intelc.py
+++ b/SCons/Tool/intelc.py
@@ -32,7 +32,11 @@ selection method.
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import math, sys, os.path, glob, string, re
+import glob
+import math
+import os.path
+import re
+import sys
is_windows = sys.platform == 'win32'
is_win64 = is_windows and (os.environ['PROCESSOR_ARCHITECTURE'] == 'AMD64' or
diff --git a/SCons/Tool/linkCommon/__init__.py b/SCons/Tool/linkCommon/__init__.py
index f11aa14..f66ad6d 100644
--- a/SCons/Tool/linkCommon/__init__.py
+++ b/SCons/Tool/linkCommon/__init__.py
@@ -46,7 +46,6 @@ def _call_linker_cb(env, callback, args, result=None):
except (KeyError, TypeError):
if Verbose:
print('_call_linker_cb: env["LINKCALLBACKS"][%r] not found or can not be used' % callback)
- pass
else:
if Verbose:
print('_call_linker_cb: env["LINKCALLBACKS"][%r] found' % callback)
diff --git a/SCons/Tool/linkloc.py b/SCons/Tool/linkloc.py
index 0ca37b3..6ee5d61 100644
--- a/SCons/Tool/linkloc.py
+++ b/SCons/Tool/linkloc.py
@@ -34,7 +34,6 @@ selection method.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import os.path
import re
import SCons.Action
diff --git a/SCons/Tool/msginit.py b/SCons/Tool/msginit.py
index a94cb85..4b72c30 100644
--- a/SCons/Tool/msginit.py
+++ b/SCons/Tool/msginit.py
@@ -28,7 +28,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import SCons.Warnings
import SCons.Builder
-import re
#############################################################################
def _optional_no_translator_flag(env):
diff --git a/SCons/Tool/msvc.py b/SCons/Tool/msvc.py
index b9eb60a..a06a434 100644
--- a/SCons/Tool/msvc.py
+++ b/SCons/Tool/msvc.py
@@ -35,8 +35,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os.path
import os
-import re
-import sys
import SCons.Action
import SCons.Builder
diff --git a/SCons/Tool/packaging/rpm.py b/SCons/Tool/packaging/rpm.py
index a026e45..cdeabcf 100644
--- a/SCons/Tool/packaging/rpm.py
+++ b/SCons/Tool/packaging/rpm.py
@@ -27,7 +27,6 @@ The rpm packager.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import os
import SCons.Builder
import SCons.Tool.rpmutils
diff --git a/SCons/Tool/qt.py b/SCons/Tool/qt.py
index fab1625..d8a51b2 100644
--- a/SCons/Tool/qt.py
+++ b/SCons/Tool/qt.py
@@ -35,7 +35,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os.path
import re
-import glob
import SCons.Action
import SCons.Builder
diff --git a/SCons/Tool/textfile.py b/SCons/Tool/textfile.py
index bb8a0f9..10e07f9 100644
--- a/SCons/Tool/textfile.py
+++ b/SCons/Tool/textfile.py
@@ -48,8 +48,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import SCons
-import os
-import re
from SCons.Node import Node
from SCons.Node.Python import Value
diff --git a/SCons/Tool/wixTests.py b/SCons/Tool/wixTests.py
index 6039115..5b255d9 100644
--- a/SCons/Tool/wixTests.py
+++ b/SCons/Tool/wixTests.py
@@ -26,7 +26,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import unittest
import os.path
import os
-import sys
import SCons.Errors
from SCons.Tool.wix import *