Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4a8a4e

Browse files
authored
Merge pull request #11954 from anntzer/doublelog
No need to define _log twice in matplotlib.dates.
2 parents 32ad86f + e31c298 commit f4a8a4e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/matplotlib/dates.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@
155155
import matplotlib.cbook as cbook
156156
import matplotlib.ticker as ticker
157157

158-
_log = logging.getLogger(__name__)
159-
160158
__all__ = ('date2num', 'num2date', 'num2timedelta', 'drange', 'epoch2num',
161159
'num2epoch', 'mx2num', 'DateFormatter',
162160
'IndexDateFormatter', 'AutoDateFormatter', 'DateLocator',
@@ -171,8 +169,6 @@
171169

172170

173171
_log = logging.getLogger(__name__)
174-
175-
176172
UTC = datetime.timezone.utc
177173

178174

@@ -361,14 +357,13 @@ def __call__(self, b):
361357
return super().__call__(s)
362358

363359

364-
# a version of dateutil.parser.parse that can operate on nump0y arrays
360+
# a version of dateutil.parser.parse that can operate on numpy arrays
365361
_dateutil_parser_parse_np_vectorized = np.vectorize(dateutil.parser.parse)
366362

367363

368364
def datestr2num(d, default=None):
369365
"""
370-
Convert a date string to a datenum using
371-
:func:`dateutil.parser.parse`.
366+
Convert a date string to a datenum using :func:`dateutil.parser.parse`.
372367
373368
Parameters
374369
----------

0 commit comments

Comments
 (0)