summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Action.py
diff options
context:
space:
mode:
authorZachary Tessler <ztessler@gmail.com>2018-12-22 22:02:03 (GMT)
committerZachary Tessler <ztessler@gmail.com>2018-12-22 22:59:48 (GMT)
commitf70796424d9ffd476396235932fc659818daa39f (patch)
tree7cea417ede515bf12b2658d833d4dffa473b6390 /src/engine/SCons/Action.py
parent4daeb49e6ee69ffd8e3d1228da9df80a9c6954ce (diff)
downloadSCons-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.py3
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')')