diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-08-03 21:38:16 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-08-03 21:38:16 +0000 |
commit | 8626a75b380484378c4b242ef02db8cdcb66f9fe (patch) | |
tree | a5657a713dbc3e2b82aa75ae0b258e56381b60b2 /numpy | |
parent | 7232a10cbf3233a8c344b8e3416050baf7d6f61f (diff) | |
download | numpy-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.py | 2 |
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): |