Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: third_party/scons/scons-local/SCons/Tool/msvs.py

Issue 17024: Update to SCons 1.2.0. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/scons/scons-local/SCons/Tool/msvc.py ('k') | third_party/scons/scons-local/SCons/Tool/mwcc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/scons/scons-local/SCons/Tool/msvc.py ('k') | third_party/scons/scons-local/SCons/Tool/mwcc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698