| Index: third_party/scons/scons-local/SCons/Tool/msvs.py
|
| ===================================================================
|
| --- third_party/scons/scons-local/SCons/Tool/msvs.py (revision 7505)
|
| +++ third_party/scons/scons-local/SCons/Tool/msvs.py (working copy)
|
| @@ -31,10 +31,10 @@
|
| # 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 @@
|
| 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
|
|
|