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/lib/histograms.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/lib/histograms.py')
-rw-r--r-- | numpy/lib/histograms.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py index 70ecd6eb1..5358c6846 100644 --- a/numpy/lib/histograms.py +++ b/numpy/lib/histograms.py @@ -7,7 +7,6 @@ import operator import warnings import numpy as np -from numpy.compat.py3k import basestring from numpy.core import overrides __all__ = ['histogram', 'histogramdd', 'histogram_bin_edges'] @@ -383,7 +382,7 @@ def _get_bin_edges(a, bins, range, weights): n_equal_bins = None bin_edges = None - if isinstance(bins, basestring): + if isinstance(bins, str): bin_name = bins # if `bins` is a string for an automatic method, # this will replace it with the number of bins calculated |