summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-08-03 21:38:16 +0000
committerPauli Virtanen <pav@iki.fi>2010-08-03 21:38:16 +0000
commit8626a75b380484378c4b242ef02db8cdcb66f9fe (patch)
treea5657a713dbc3e2b82aa75ae0b258e56381b60b2 /numpy
parent7232a10cbf3233a8c344b8e3416050baf7d6f61f (diff)
downloadnumpy-8626a75b380484378c4b242ef02db8cdcb66f9fe.tar.gz
BUG: core/3K: use bytes.maketrans instead of the deprecated string.maketrans (fixes #1571)
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/code_generators/generate_umath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py
index 162ab3058..5d19534e4 100644
--- a/numpy/core/code_generators/generate_umath.py
+++ b/numpy/core/code_generators/generate_umath.py
@@ -113,7 +113,7 @@ import string
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):