diff options
Diffstat (limited to 'SCons/Node/Python.py')
-rw-r--r-- | SCons/Node/Python.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/SCons/Node/Python.py b/SCons/Node/Python.py index 95fd274..0eab05c 100644 --- a/SCons/Node/Python.py +++ b/SCons/Node/Python.py @@ -143,19 +143,14 @@ class Value(SCons.Node.Node): def get_contents(self) -> bytes: """Get contents for signature calculations.""" - text_contents = self.get_text_contents() - try: - return text_contents.encode() - except AttributeError: - # Should not happen, as get_text_contents returns str - return text_contents + return self.get_text_contents().encode() def changed_since_last_build(self, target, prev_ni): cur_csig = self.get_csig() try: return cur_csig != prev_ni.csig except AttributeError: - return 1 + return True def get_csig(self, calc=None): """Because we're a Python value node and don't have a real |