diff options
author | Steven Knight <knight@baldmt.com> | 2004-06-01 04:41:58 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-06-01 04:41:58 (GMT) |
commit | c642fca37d45da3f01c892b1518ce42ef8abbb6e (patch) | |
tree | 6483b18f10e11a46357d385fae5d023c25ce58b8 /src/engine/SCons/Environment.py | |
parent | 78b110985d41c80a1803e95f3f9fe7280a0c1cb1 (diff) | |
download | SCons-c642fca37d45da3f01c892b1518ce42ef8abbb6e.zip SCons-c642fca37d45da3f01c892b1518ce42ef8abbb6e.tar.gz SCons-c642fca37d45da3f01c892b1518ce42ef8abbb6e.tar.bz2 |
Remove dead imports and other things found by PyChecker.
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r-- | src/engine/SCons/Environment.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index d43a99f..5766523 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -39,8 +39,6 @@ import copy import os import os.path import string -import re -import shutil from UserDict import UserDict import SCons.Action @@ -417,11 +415,8 @@ class Base: def scanner_map_delete(self, kw=None): """Delete the cached scanner map (if we need to). """ - if not kw is None: - try: - kw['SCANNERS'] - except KeyError: - return + if not kw is None and not kw.has_key('SCANNERS'): + return try: del self.scanner_map except AttributeError: |