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

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Aug 3 17:38:16 EDT 2010


Author: ptvirtan
Date: 2010-08-03 16:38:16 -0500 (Tue, 03 Aug 2010)
New Revision: 8589

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

Modified: trunk/numpy/core/code_generators/generate_umath.py
===================================================================
--- trunk/numpy/core/code_generators/generate_umath.py	2010-08-03 21:37:48 UTC (rev 8588)
+++ trunk/numpy/core/code_generators/generate_umath.py	2010-08-03 21:38:16 UTC (rev 8589)
@@ -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