summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Sig/MD5.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-11-09 03:11:32 (GMT)
committerSteven Knight <knight@baldmt.com>2003-11-09 03:11:32 (GMT)
commitb2256bb0f8e1e0f5822d250b58ff123349e58df5 (patch)
tree0544ff0d91f9cbe5bb1e29c2911c962bcdff8c00 /src/engine/SCons/Sig/MD5.py
parentb7308d19648bda8220d69328de74dfcad9a28872 (diff)
downloadSCons-b2256bb0f8e1e0f5822d250b58ff123349e58df5.zip
SCons-b2256bb0f8e1e0f5822d250b58ff123349e58df5.tar.gz
SCons-b2256bb0f8e1e0f5822d250b58ff123349e58df5.tar.bz2
Don't swallow the AttributeError for an expansion like .bak.
Diffstat (limited to 'src/engine/SCons/Sig/MD5.py')
-rw-r--r--src/engine/SCons/Sig/MD5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Sig/MD5.py b/src/engine/SCons/Sig/MD5.py
index c50dbb7..21cb24c 100644
--- a/src/engine/SCons/Sig/MD5.py
+++ b/src/engine/SCons/Sig/MD5.py
@@ -79,10 +79,10 @@ def signature(obj):
"""Generate a signature for an object
"""
try:
- contents = str(obj.get_contents())
+ gc = obj.get_contents
except AttributeError:
raise AttributeError, "unable to fetch contents of '%s'" % str(obj)
- return hexdigest(md5.new(contents).digest())
+ return hexdigest(md5.new(str(gc())).digest())
def to_string(signature):
"""Convert a signature to a string"""