From e83bf211d3419e157af0e445240b13f07b3f6496 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Wed, 15 Aug 2018 13:28:06 -0600 Subject: 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 --- src/engine/SCons/Action.py | 1 - 1 file changed, 1 deletion(-) 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() -- cgit v0.12