8000 Cleanup DateFormatter docstring. · matplotlib/matplotlib@625a8e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 625a8e8

Browse files
committed
Cleanup DateFormatter docstring.
The specific handling of <1900 dates was made unnecessary after the switch to Py3-only (https://bugs.python.org/issue1777412) and recently completely removed after the removal of pre-3.0 APIs.
1 parent 3bacb5f commit 625a8e8

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/matplotlib/dates.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -589,21 +589,18 @@ def drange(dstart, dend, delta):
589589

590590
class DateFormatter(ticker.Formatter):
591591
"""
592-
Tick location is seconds since the epoch. Use a :func:`strftime`
593-
format string.
594-
595-
Python only supports :mod:`datetime` :func:`strftime` formatting
596-
for years greater than 1900. Thanks to Andrew Dalke, Dalke
597-
Scientific Software who contributed the :func:`strftime` code
598-
below to include dates earlier than this year.
592+
Format a tick (in seconds since the epoch) with a `strftime` format string.
599593
"""
600594

601595
illegal_s = re.compile(r"((^|[^%])(%%)*%s)")
602596

603597
def __init__(self, fmt, tz=None):
604598
"""
605-
*fmt* is a :func:`strftime` format string; *tz* is the
606-
:class:`tzinfo` instance.
599+
Parameters
600+
----------
601+
fmt : str
602+
`strftime` format string
603+
tz : `tzinfo`
607604
"""
608605
if tz is None:
609606
tz = _get_rc_timezone()

0 commit comments

Comments
 (0)
0