diff options
author | Steven Knight <knight@baldmt.com> | 2009-02-06 18:36:10 +0000 |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-02-06 18:36:10 +0000 |
commit | 21ae9d785d6b9b119e25efc19446bb86ed459df8 (patch) | |
tree | 7baba507756d614ac4b146011916abe5d41d3626 /test/Java | |
parent | 2e0c4d2187fa7545c47d9fea7f4f1fb25149fef0 (diff) | |
download | scons-21ae9d785d6b9b119e25efc19446bb86ed459df8.tar.gz |
Remove (lots) more unnecessary imports.
Diffstat (limited to 'test/Java')
-rw-r--r-- | test/Java/JAR.py | 1 | ||||
-rw-r--r-- | test/Java/JAVAC.py | 3 | ||||
-rw-r--r-- | test/Java/JAVAH.py | 2 | ||||
-rw-r--r-- | test/Java/Java-1.4.py | 3 | ||||
-rw-r--r-- | test/Java/Java-1.5.py | 3 | ||||
-rw-r--r-- | test/Java/Java-1.6.py | 3 | ||||
-rw-r--r-- | test/Java/RMIC.py | 3 | ||||
-rw-r--r-- | test/Java/multi-step.py | 3 | ||||
-rw-r--r-- | test/Java/nested-classes.py | 4 |
9 files changed, 10 insertions, 15 deletions
diff --git a/test/Java/JAR.py b/test/Java/JAR.py index ee552f45..34657ff7 100644 --- a/test/Java/JAR.py +++ b/test/Java/JAR.py @@ -25,7 +25,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os -import os.path import string import sys import TestSCons diff --git a/test/Java/JAVAC.py b/test/Java/JAVAC.py index 09639ea6..baedac0f 100644 --- a/test/Java/JAVAC.py +++ b/test/Java/JAVAC.py @@ -29,9 +29,8 @@ Test setting the JAVAC variable. """ import os -import os.path -import string import sys + import TestSCons _python_ = TestSCons._python_ diff --git a/test/Java/JAVAH.py b/test/Java/JAVAH.py index 95abd33f..32ad1195 100644 --- a/test/Java/JAVAH.py +++ b/test/Java/JAVAH.py @@ -24,7 +24,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" -import os.path +import os import string import TestSCons diff --git a/test/Java/Java-1.4.py b/test/Java/Java-1.4.py index 3c0e1ed8..0906513d 100644 --- a/test/Java/Java-1.4.py +++ b/test/Java/Java-1.4.py @@ -29,9 +29,8 @@ Test Java compilation with a live Java 1.4 "javac" compiler. """ import os -import os.path -import string import sys + import TestSCons _python_ = TestSCons._python_ diff --git a/test/Java/Java-1.5.py b/test/Java/Java-1.5.py index f6d93c7a..20ebc250 100644 --- a/test/Java/Java-1.5.py +++ b/test/Java/Java-1.5.py @@ -29,9 +29,8 @@ Test Java compilation with a live Java 1.5 "javac" compiler. """ import os -import os.path -import string import sys + import TestSCons _python_ = TestSCons._python_ diff --git a/test/Java/Java-1.6.py b/test/Java/Java-1.6.py index 5bd8e2f5..649cf010 100644 --- a/test/Java/Java-1.6.py +++ b/test/Java/Java-1.6.py @@ -29,9 +29,8 @@ Test Java compilation with a live Java 1.6 "javac" compiler. """ import os -import os.path -import string import sys + import TestSCons _python_ = TestSCons._python_ diff --git a/test/Java/RMIC.py b/test/Java/RMIC.py index f9721c2f..3340707a 100644 --- a/test/Java/RMIC.py +++ b/test/Java/RMIC.py @@ -27,6 +27,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import string import sys + import TestSCons _python_ = TestSCons._python_ @@ -34,7 +35,7 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() test.write('myrmic.py', r""" -import os.path +import os import sys args = sys.argv[1:] while args: diff --git a/test/Java/multi-step.py b/test/Java/multi-step.py index b5f24f94..34e814b3 100644 --- a/test/Java/multi-step.py +++ b/test/Java/multi-step.py @@ -29,6 +29,8 @@ Real-world test (courtesy Leanid Nazdrynau) of the multi-step capabilities of the various Java Builders. """ +import os + import TestSCons test = TestSCons.TestSCons() @@ -562,7 +564,6 @@ test.must_exist(['buildout', 'jni', 'SampleTest.java']) # a SampleTest.class file, while others do. Only issue a warning if # it doesn't exist. p = test.workpath('buildout', 'jni', 'SampleTest.class') -import os.path if not os.path.exists(p): print 'Warning: %s does not exist' % p diff --git a/test/Java/nested-classes.py b/test/Java/nested-classes.py index 3d3e9904..3550e768 100644 --- a/test/Java/nested-classes.py +++ b/test/Java/nested-classes.py @@ -29,9 +29,7 @@ Test Java compilation with inner and anonymous classes (Issue 2087). """ import os -import os.path -import string -import sys + import TestSCons _python_ = TestSCons._python_ |