diff options
author | Mats Wichmann <mats@linux.com> | 2020-09-21 14:21:38 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-09-21 16:39:39 (GMT) |
commit | 22c489260a659971aa6cea88f1024824fe31152d (patch) | |
tree | c67489084dcaa97d8c442033cfd213db0dcd4a19 /testing/framework | |
parent | 858ae87bad24f9df9b1731d154e72cf6d06f05de (diff) | |
download | SCons-22c489260a659971aa6cea88f1024824fe31152d.zip SCons-22c489260a659971aa6cea88f1024824fe31152d.tar.gz SCons-22c489260a659971aa6cea88f1024824fe31152d.tar.bz2 |
Run autoflake on code
Eliminate unneeded imports, and a few unneeded statements -
usually "pass" where it is not syntactically needed.
A couple of import try blocks were eliminated or changed
when they're "cannot happen" due to current floor Python version.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'testing/framework')
-rw-r--r-- | testing/framework/TestCmd.py | 1 | ||||
-rw-r--r-- | testing/framework/TestCmdTests.py | 2 | ||||
-rw-r--r-- | testing/framework/TestCommon.py | 1 | ||||
-rw-r--r-- | testing/framework/TestCommonTests.py | 2 | ||||
-rw-r--r-- | testing/framework/TestSConsign.py | 1 |
5 files changed, 0 insertions, 7 deletions
diff --git a/testing/framework/TestCmd.py b/testing/framework/TestCmd.py index f0051ba..558bf44 100644 --- a/testing/framework/TestCmd.py +++ b/testing/framework/TestCmd.py @@ -309,7 +309,6 @@ import tempfile import threading import time import traceback -import types from collections import UserList, UserString from subprocess import PIPE, STDOUT diff --git a/testing/framework/TestCmdTests.py b/testing/framework/TestCmdTests.py index 7017d2c..e37b90e 100644 --- a/testing/framework/TestCmdTests.py +++ b/testing/framework/TestCmdTests.py @@ -24,13 +24,11 @@ __revision__ = "TestCmdTests.py 1.3.D001 2010/06/03 12:58:27 knight" import os import shutil -import signal import stat import subprocess import sys import tempfile import time -import types import unittest from io import StringIO from contextlib import closing diff --git a/testing/framework/TestCommon.py b/testing/framework/TestCommon.py index 35bf365..1471439 100644 --- a/testing/framework/TestCommon.py +++ b/testing/framework/TestCommon.py @@ -99,7 +99,6 @@ __author__ = "Steven Knight <knight at baldmt dot com>" __revision__ = "TestCommon.py 1.3.D001 2010/06/03 12:58:27 knight" __version__ = "1.3" -import copy import glob import os import stat diff --git a/testing/framework/TestCommonTests.py b/testing/framework/TestCommonTests.py index 6c9e92d..8a93b35 100644 --- a/testing/framework/TestCommonTests.py +++ b/testing/framework/TestCommonTests.py @@ -22,11 +22,9 @@ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. __author__ = "Steven Knight <knight at baldmt dot com>" __revision__ = "TestCommonTests.py 1.3.D001 2010/06/03 12:58:27 knight" -import difflib import os import re import signal -import stat import sys import unittest diff --git a/testing/framework/TestSConsign.py b/testing/framework/TestSConsign.py index 665059c..11a764c 100644 --- a/testing/framework/TestSConsign.py +++ b/testing/framework/TestSConsign.py @@ -19,7 +19,6 @@ in this subclass. import os import os.path -import sys from TestSCons import * from TestSCons import __all__ |