diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-12-28 14:18:55 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-12-28 14:18:55 +0100 |
commit | 6298ea00640a74af4eecbf3528ea87bd191a2eba (patch) | |
tree | 6f9badf5b8f69055849260093eb76ce184e746ef /engine/SCons/Node/__init__.py | |
parent | 0809a628a8aa042fe6bb225d4d70e63f289eaafb (diff) | |
parent | 5d14e9e6b9aa6c884d8a4787cd248c9ab3612962 (diff) |
Konflikte behobendebian/3.1.2-1
Diffstat (limited to 'engine/SCons/Node/__init__.py')
-rw-r--r-- | engine/SCons/Node/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/SCons/Node/__init__.py b/engine/SCons/Node/__init__.py index c1f8d89..32f4bba 100644 --- a/engine/SCons/Node/__init__.py +++ b/engine/SCons/Node/__init__.py @@ -43,7 +43,7 @@ from __future__ import print_function # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Node/__init__.py 72ae09dc35ac2626f8ff711d8c4b30b6138e08e3 2019-08-08 14:50:06 bdeegan" +__revision__ = "src/engine/SCons/Node/__init__.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import os import collections @@ -614,6 +614,7 @@ class Node(object, with_metaclass(NoSlotsPyPy)): self._func_rexists = 1 self._func_get_contents = 0 self._func_target_from_source = 0 + self.ninfo = None self.clear_memoized_values() @@ -1131,11 +1132,10 @@ class Node(object, with_metaclass(NoSlotsPyPy)): return ninfo def get_ninfo(self): - try: - return self.ninfo - except AttributeError: - self.ninfo = self.new_ninfo() + if self.ninfo is not None: return self.ninfo + self.ninfo = self.new_ninfo() + return self.ninfo def new_binfo(self): binfo = self.BuildInfo() |