We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f39cc commit 00e2bcaCopy full SHA for 00e2bca
src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Node/__init__.py
@@ -614,6 +614,7 @@ def __init__(self):
614
self._func_rexists = 1
615
self._func_get_contents = 0
616
self._func_target_from_source = 0
617
+ self.ninfo = None
618
619
self.clear_memoized_values()
620
@@ -1131,11 +1132,10 @@ def new_ninfo(self):
1131
1132
return ninfo
1133
1134
def get_ninfo(self):
- try:
1135
- return self.ninfo
1136
- except AttributeError:
1137
- self.ninfo = self.new_ninfo()
+ if self.ninfo is not None:
1138
return self.ninfo
+ self.ninfo = self.new_ninfo()
+ return self.ninfo
1139
1140
def new_binfo(self):
1141
binfo = self.BuildInfo()
0 commit comments