From 9849b3e48a9036a71a5d1319617043e9f2dabe46 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 1 Feb 2022 21:33:33 +0000 Subject: Fix sider complaints about single line methods --- SCons/Action.py | 12 ++++++++---- 1 file 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 '' -- cgit v0.12