From 8cfc5188e0a9cff7a584c83e7ee16ef7023b3cd5 Mon Sep 17 00:00:00 2001 From: jquast Date: Sun, 1 Jun 2014 17:56:30 -0700 Subject: remove all unnecessary imports --- tools/merge_templates.py | 9 ++------- tools/testsweep.py | 1 - tools/tweak_files.py | 3 ++- tools/websync.py | 4 ++-- 4 files changed, 6 insertions(+), 11 deletions(-) (limited to 'tools') diff --git a/tools/merge_templates.py b/tools/merge_templates.py index accc8e9..b4fab18 100755 --- a/tools/merge_templates.py +++ b/tools/merge_templates.py @@ -24,14 +24,9 @@ PEXPECT LICENSE ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ''' -import sys, os, re +import os +import re import pyed -try: - import pexpect -except: - # this happens if Pexpect was never installed to begin with. - sys.path.insert(0, '.') - import pexpect # extract the version number from the pexpect.py source. d = pyed.pyed() diff --git a/tools/testsweep.py b/tools/testsweep.py index 0f2c4d5..8100d99 100755 --- a/tools/testsweep.py +++ b/tools/testsweep.py @@ -20,7 +20,6 @@ PEXPECT LICENSE """ import pexpect -import sys import getpass def test_platform (platform_menu, platform_python_path): diff --git a/tools/tweak_files.py b/tools/tweak_files.py index 4ab8b22..08481a2 100755 --- a/tools/tweak_files.py +++ b/tools/tweak_files.py @@ -20,7 +20,8 @@ PEXPECT LICENSE ''' import pyed -import sys, os, re +import os +import re # extract the version number from the pexpect.py source. d = pyed.pyed() diff --git a/tools/websync.py b/tools/websync.py index a4ee141..b7723e5 100755 --- a/tools/websync.py +++ b/tools/websync.py @@ -26,9 +26,9 @@ PEXPECT LICENSE ''' -import pexpect, pyed +import pexpect import getpass -import sys, os +import sys X = getpass.getpass('Password: ') pp_pattern=["(?i)password:", "(?i)enter passphrase for key '.*?':"] -- cgit v1.2.1