diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-02-01 21:33:33 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-02-01 21:33:33 (GMT) |
commit | 9849b3e48a9036a71a5d1319617043e9f2dabe46 (patch) | |
tree | 00ca2597a407914bf977d5c9fac664b6bd83951f | |
parent | 8dff0099875bdc8e9f526c8a3ee9baf3b9fc6a5f (diff) | |
download | SCons-9849b3e48a9036a71a5d1319617043e9f2dabe46.zip SCons-9849b3e48a9036a71a5d1319617043e9f2dabe46.tar.gz SCons-9849b3e48a9036a71a5d1319617043e9f2dabe46.tar.bz2 |
Fix sider complaints about single line methods
-rw-r--r-- | SCons/Action.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/SCons/Action.py b/SCons/Action.py index cf17181..e3dfbfd 100644 --- a/SCons/Action.py +++ b/SCons/Action.py @@ -804,10 +804,14 @@ def _subproc(scons_env, cmd, error='ignore', **kw): # for example # with Action._subproc(...) as po: # logic here which uses po - def __enter__(self): return self - def __exit__(self, *args): pass - def communicate(self, input=None): return ('', '') - def wait(self): return -self.exception.errno + def __enter__(self): + return self + def __exit__(self, *args): + pass + def communicate(self, input=None): + return ('', '') + def wait(self): + return -self.exception.errno stdin = None class f: def read(self): return '' |