Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 625a8e8

Browse filesBrowse 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
Copy full SHA for 625a8e8

File tree

Expand file treeCollapse file tree

1 file changed

+6
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-9
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+6-9Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.