summaryrefslogtreecommitdiffstats
path: root/third_party/scons/scons-local/SCons/Tool/msvs.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/scons/scons-local/SCons/Tool/msvs.py')
-rw-r--r--third_party/scons/scons-local/SCons/Tool/msvs.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/third_party/scons/scons-local/SCons/Tool/msvs.py b/third_party/scons/scons-local/SCons/Tool/msvs.py
index 6550c9d..f8a20ea 100644
--- a/third_party/scons/scons-local/SCons/Tool/msvs.py
+++ b/third_party/scons/scons-local/SCons/Tool/msvs.py
@@ -31,10 +31,10 @@ selection method.
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
-__revision__ = "src/engine/SCons/Tool/msvs.py 3603 2008/10/10 05:46:45 scons"
+__revision__ = "src/engine/SCons/Tool/msvs.py 3842 2008/12/20 22:59:52 scons"
import base64
-import md5
+import hashlib
import os.path
import pickle
import re
@@ -79,9 +79,11 @@ def _generateGUID(slnfile, name):
based on the MD5 signatures of the sln filename plus the name of
the project. It basically just needs to be unique, and not
change with each invocation."""
+ m = hashlib.md5()
+ m.update(str(slnfile) + str(name))
# TODO(1.5)
- #solution = _hexdigest(md5.new(str(slnfile)+str(name)).digest()).upper()
- solution = string.upper(_hexdigest(md5.new(str(slnfile)+str(name)).digest()))
+ #solution = m.hexdigest().upper()
+ solution = string.upper(_hexdigest(m.digest()))
# convert most of the signature to GUID form (discard the rest)
solution = "{" + solution[:8] + "-" + solution[8:12] + "-" + solution[12:16] + "-" + solution[16:20] + "-" + solution[20:32] + "}"
return solution