diff options
author | jquast <contact@jeffquast.com> | 2014-06-01 17:56:30 -0700 |
---|---|---|
committer | jquast <contact@jeffquast.com> | 2014-06-01 17:56:30 -0700 |
commit | 8cfc5188e0a9cff7a584c83e7ee16ef7023b3cd5 (patch) | |
tree | 0b9fc2a5fd2ee51783c9795cfa4b36e9f51a91ab /tools | |
parent | 8807914872e9694f62656505f83997f46e63ffaa (diff) | |
download | pexpect-git-8cfc5188e0a9cff7a584c83e7ee16ef7023b3cd5.tar.gz |
remove all unnecessary imports
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/merge_templates.py | 9 | ||||
-rwxr-xr-x | tools/testsweep.py | 1 | ||||
-rwxr-xr-x | tools/tweak_files.py | 3 | ||||
-rwxr-xr-x | tools/websync.py | 4 |
4 files changed, 6 insertions, 11 deletions
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 '.*?':"] |