diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-23 16:50:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 16:50:25 -0800 |
commit | 68224f43d09393c1981bb83ee3c13a5158d2817c (patch) | |
tree | 94153dd189f924c399c2621c325fd2fd2a5e6ba6 /numpy/core/numeric.py | |
parent | 4c32890b3628434996824ae2056333b9a389f46c (diff) | |
parent | b4e3a4227e3a9cfe28717db458e67d79e916a418 (diff) | |
download | numpy-68224f43d09393c1981bb83ee3c13a5158d2817c.tar.gz |
Merge pull request #15407 from charris/replace-basestring
MAINT: Replace basestring with str.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index f1d7d48f1..5e8151e68 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -6,7 +6,6 @@ import warnings import numbers import numpy as np -from numpy.compat import basestring from . import multiarray from .multiarray import ( _fastCopyAndTranspose as fastCopyAndTranspose, ALLOW_THREADS, @@ -625,7 +624,7 @@ _mode_from_name_dict = {'v': 0, def _mode_from_name(mode): - if isinstance(mode, basestring): + if isinstance(mode, str): return _mode_from_name_dict[mode.lower()[0]] return mode |