summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Sig/MD5.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-11-02 03:12:07 (GMT)
committerSteven Knight <knight@baldmt.com>2001-11-02 03:12:07 (GMT)
commit2f51f69cf055ec44e37eaac22b1992bd5218278f (patch)
tree60165bd248d020974a0be3f5477825876a682445 /src/engine/SCons/Sig/MD5.py
parent00c3ada748b164ecf909727fa81f521dde72fda9 (diff)
downloadSCons-2f51f69cf055ec44e37eaac22b1992bd5218278f.zip
SCons-2f51f69cf055ec44e37eaac22b1992bd5218278f.tar.gz
SCons-2f51f69cf055ec44e37eaac22b1992bd5218278f.tar.bz2
Rebuild in response to a changed build command.
Diffstat (limited to 'src/engine/SCons/Sig/MD5.py')
-rw-r--r--src/engine/SCons/Sig/MD5.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/SCons/Sig/MD5.py b/src/engine/SCons/Sig/MD5.py
index e13669e..bd5643f 100644
--- a/src/engine/SCons/Sig/MD5.py
+++ b/src/engine/SCons/Sig/MD5.py
@@ -79,9 +79,10 @@ def signature(obj):
"""Generate a signature for an object
"""
try:
- contents = obj.get_contents()
- except AttributeError:
- raise AttributeError, "unable to fetch contents of '%s'" % str(obj)
+ contents = str(obj.get_contents())
+ except AttributeError, e:
+ raise AttributeError, \
+ "unable to fetch contents of '%s': %s" % (str(obj), e)
return hexdigest(md5.new(contents).digest())
def to_string(signature):