diff options
author | Zachary Tessler <ztessler@gmail.com> | 2018-12-22 22:02:03 (GMT) |
---|---|---|
committer | Zachary Tessler <ztessler@gmail.com> | 2018-12-22 22:59:48 (GMT) |
commit | f70796424d9ffd476396235932fc659818daa39f (patch) | |
tree | 7cea417ede515bf12b2658d833d4dffa473b6390 /src/engine/SCons/Action.py | |
parent | 4daeb49e6ee69ffd8e3d1228da9df80a9c6954ce (diff) | |
download | SCons-f70796424d9ffd476396235932fc659818daa39f.zip SCons-f70796424d9ffd476396235932fc659818daa39f.tar.gz SCons-f70796424d9ffd476396235932fc659818daa39f.tar.bz2 |
fix missing code contents that should be included in signature of a function action
Diffstat (limited to 'src/engine/SCons/Action.py')
-rw-r--r-- | src/engine/SCons/Action.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py index 78fb7d0..bff6003 100644 --- a/src/engine/SCons/Action.py +++ b/src/engine/SCons/Action.py @@ -258,8 +258,7 @@ def _code_contents(code, docstring=None): # function. Note that we have to call _object_contents on each # constants because the code object of nested functions can # show-up among the constants. - - z = [_object_contents(cc) for cc in code.co_consts[1:]] + z = [_object_contents(cc) for cc in code.co_consts if cc != docstring] contents.extend(b',(') contents.extend(bytearray(',', 'utf-8').join(z)) contents.extend(b')') |