summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2018-08-15 19:28:06 (GMT)
committerMats Wichmann <mats@linux.com>2018-08-15 19:28:06 (GMT)
commite83bf211d3419e157af0e445240b13f07b3f6496 (patch)
treedec9087b4d4f87fa1985ea388e82913ff288368f /src/engine/SCons
parentb4b5abd17a3357561a3b7b9f7f7916778a719d93 (diff)
downloadSCons-e83bf211d3419e157af0e445240b13f07b3f6496.zip
SCons-e83bf211d3419e157af0e445240b13f07b3f6496.tar.gz
SCons-e83bf211d3419e157af0e445240b13f07b3f6496.tar.bz2
Remove unintended "import io"
During develoment of PR#3177, an interation checked objects for being a subclass of io.IOBase, which necessitated importing the io module. Later the check was changed to see if the object simply had a close method, in which case that is called. The import was not removed; cleaning that up. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/Action.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py
index 32ceaa9..44ddacd 100644
--- a/src/engine/SCons/Action.py
+++ b/src/engine/SCons/Action.py
@@ -819,7 +819,6 @@ def _subproc(scons_env, cmd, error = 'ignore', **kw):
pobj = dummyPopen(e)
finally:
# clean up open file handles stored in parent's kw
- import io
for k, v in kw.items():
if hasattr(v, 'close'):
v.close()