[Numpy-svn] r8594 - branches/1.5.x/numpy/core/code_generators

numpy-svn@scip... numpy-svn@scip...
Tue Aug 3 16:53:13 CDT 2010


Author: ptvirtan
Date: 2010-08-03 16:53:13 -0500 (Tue, 03 Aug 2010)
New Revision: 8594

Modified:
   branches/1.5.x/numpy/core/code_generators/generate_umath.py
Log:
BUG: (backport r8589) core/3K: use bytes.maketrans instead of the deprecated string.maketrans (fixes #1571)

Modified: branches/1.5.x/numpy/core/code_generators/generate_umath.py
===================================================================
--- branches/1.5.x/numpy/core/code_generators/generate_umath.py	2010-08-03 21:52:53 UTC (rev 8593)
+++ branches/1.5.x/numpy/core/code_generators/generate_umath.py	2010-08-03 21:53:13 UTC (rev 8594)
@@ -113,7 +113,7 @@
 if sys.version_info[0] < 3:
     UPPER_TABLE = string.maketrans(string.ascii_lowercase, string.ascii_uppercase)
 else:
-    UPPER_TABLE = string.maketrans(bytes(string.ascii_lowercase, "ascii"), 
+    UPPER_TABLE = bytes.maketrans(bytes(string.ascii_lowercase, "ascii"), 
             bytes(string.ascii_uppercase, "ascii"))
 
 def english_upper(s):



More information about the Numpy-svn mailing list