# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1303229617 0 # Node ID 9dce3dbd4fa99a6b93a766179f4dec7ecd487b14 # Parent f67e9f47526d8b86223438472baf71183c2f1814 Applying patch to get rid of md5 warning message when running scons. diff -r f67e9f47526d -r 9dce3dbd4fa9 utils/util_scripts/path.py --- a/utils/util_scripts/path.py Thu Mar 31 02:56:16 2011 +0000 +++ b/utils/util_scripts/path.py Tue Apr 19 16:13:37 2011 +0000 @@ -29,7 +29,14 @@ from __future__ import generators -import sys, warnings, os, fnmatch, glob, shutil, codecs, md5 +import sys, warnings, os, fnmatch, glob, shutil, codecs + +try: + # Python 2.5 or higher + from hashlib import md5 +except ImportError: + # Python 2.4 or lower + from md5 import new as md5 __version__ = '2.2' __all__ = ['path'] @@ -767,7 +774,7 @@ """ f = self.open('rb') try: - m = md5.new() + m = md5() while True: d = f.read(8192) if not d: