[Numpy-svn] r6293 - trunk/numpy/core/code_generators

numpy-svn@scip... numpy-svn@scip...
Sun Jan 4 06:03:32 CST 2009


Author: cdavid
Date: 2009-01-04 06:03:29 -0600 (Sun, 04 Jan 2009)
New Revision: 6293

Modified:
   trunk/numpy/core/code_generators/genapi.py
Log:
Revert md5 change: hashlib.md5 is not a drop-in replacement for md5.

Modified: trunk/numpy/core/code_generators/genapi.py
===================================================================
--- trunk/numpy/core/code_generators/genapi.py	2009-01-04 11:08:16 UTC (rev 6292)
+++ trunk/numpy/core/code_generators/genapi.py	2009-01-04 12:03:29 UTC (rev 6293)
@@ -6,15 +6,9 @@
 specified.
 """
 import sys, os, re
+import md5
 import textwrap
 
-_PY_MAJ, _PY_MIN = sys.version_info[:2]
-# md5 is deprecated from python 2.6
-if _PY_MAJ == 2 and _PY_MIN  < 6:
-    import md5
-else:
-    from hashlib import md5
-
 __docformat__ = 'restructuredtext'
 
 # The files under src/ that are scanned for API functions



More information about the Numpy-svn mailing list