summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-18 18:39:59 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-18 18:39:59 (GMT)
commit83bbec701a00f41f42705d0348786dc3cbab477b (patch)
tree43ced0761aff1d5c888526117b8102fbff3b063f /src
parent0eabeee2ad74b585fef41e2a4d1eb6de4b679dc2 (diff)
downloadSCons-83bbec701a00f41f42705d0348786dc3cbab477b.zip
SCons-83bbec701a00f41f42705d0348786dc3cbab477b.tar.gz
SCons-83bbec701a00f41f42705d0348786dc3cbab477b.tar.bz2
Handle situations where the inspect module can't tell Memoizer what the sourcefile is. (Chad Austin)
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Memoize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Memoize.py b/src/engine/SCons/Memoize.py
index 55a10ba..afa77ee 100644
--- a/src/engine/SCons/Memoize.py
+++ b/src/engine/SCons/Memoize.py
@@ -796,7 +796,7 @@ else:
import inspect # It's OK, can't get here for Python < 2.1
superinitcode = compile(
"lambda self, *args, **kw: MPI(self, cls, args, kw)",
- inspect.getsourcefile(_MeMoIZeR_superinit),
+ inspect.getsourcefile(_MeMoIZeR_superinit) or '<unknown>',
"eval")
superinit = eval(superinitcode,
{'cls':cls,