summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/javac.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-06-01 04:41:58 (GMT)
committerSteven Knight <knight@baldmt.com>2004-06-01 04:41:58 (GMT)
commitec0bcde54157490d9da10a3d0f3d58ccfaf86f22 (patch)
tree6483b18f10e11a46357d385fae5d023c25ce58b8 /src/engine/SCons/Tool/javac.py
parent01989b813c4d05c6a59212f8237287877d415798 (diff)
downloadSCons-ec0bcde54157490d9da10a3d0f3d58ccfaf86f22.zip
SCons-ec0bcde54157490d9da10a3d0f3d58ccfaf86f22.tar.gz
SCons-ec0bcde54157490d9da10a3d0f3d58ccfaf86f22.tar.bz2
Remove dead imports and other things found by PyChecker.
Diffstat (limited to 'src/engine/SCons/Tool/javac.py')
-rw-r--r--src/engine/SCons/Tool/javac.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/engine/SCons/Tool/javac.py b/src/engine/SCons/Tool/javac.py
index b4a5ce9..e16f6d0 100644
--- a/src/engine/SCons/Tool/javac.py
+++ b/src/engine/SCons/Tool/javac.py
@@ -35,7 +35,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
import os.path
-import re
import string
import SCons.Builder
@@ -67,8 +66,8 @@ def emit_java_classes(target, source, env):
os.path.walk(sdir.rdir().get_abspath(), visit, slist)
tlist = []
- for file in slist:
- pkg_dir, classes = parse_java_file(file.get_abspath())
+ for f in slist:
+ pkg_dir, classes = parse_java_file(f.get_abspath())
if pkg_dir:
for c in classes:
t = target[0].Dir(pkg_dir).File(c+class_suffix)
@@ -84,7 +83,7 @@ def emit_java_classes(target, source, env):
else:
# This is an odd end case: no package and no classes.
# Just do our best based on the source file name.
- base = str(file)[:-len(java_suffix)]
+ base = str(f)[:-len(java_suffix)]
t = target[0].File(base + class_suffix)
t.attributes.java_classdir = target[0]
t.attributes.java_classname = classname(base)