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 188faa1

Browse filesBrowse files
committed
Kill some private, unused functions in dates.py.
_close_to_dt has been unused since 2012, _close_to_num has never been used in the history of the repo.
1 parent 64c84b4 commit 188faa1
Copy full SHA for 188faa1

File tree

Expand file treeCollapse file tree

1 file changed

+0
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-18
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,24 +1868,6 @@ def _get_interval(self):
18681868
return self._interval
18691869

18701870

1871-
def _close_to_dt(d1, d2, epsilon=5):
1872-
"""
1873-
Assert that datetimes *d1* and *d2* are within *epsilon* microseconds.
1874-
"""
1875-
delta = d2 - d1
1876-
mus = abs(delta.total_seconds() * 1e6)
1877-
assert mus < epsilon
1878-
1879-
1880-
def _close_to_num(o1, o2, epsilon=5):
1881-
"""
1882-
Assert that float ordinals *o1* and *o2* are within *epsilon*
1883-
microseconds.
1884-
"""
1885-
delta = abs((o2 - o1) * MUSECONDS_PER_DAY)
1886-
assert delta < epsilon
1887-
1888-
18891871
def epoch2num(e):
18901872
"""
18911873
Convert an epoch or sequence of epochs to the new date format,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.