Skip to content

Commit f881e9b

Browse files
authored
Merge pull request #11396 from anntzer/py2comments
Remove some (minor) comments regarding Py2.
2 parents 6665bc7 + 26b61e3 commit f881e9b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/matplotlib/artist.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,7 @@ def set_label(self, s):
894894
Parameters
895895
----------
896896
s : object
897-
*s* will be converted to a string by calling `str` (`unicode` on
898-
Py2).
897+
*s* will be converted to a string by calling `str`.
899898
900899
.. ACCEPTS: object
901900
"""

lib/matplotlib/cbook/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1941,9 +1941,8 @@ def _topmost_artist(
19411941
"""Get the topmost artist of a list.
19421942
19431943
In case of a tie, return the *last* of the tied artists, as it will be
1944-
drawn on top of the others. `max` returns the first maximum in case of ties
1945-
(on Py2 this is undocumented but true), so we need to iterate over the list
1946-
in reverse order.
1944+
drawn on top of the others. `max` returns the first maximum in case of
1945+
ties, so we need to iterate over the list in reverse order.
19471946
"""
19481947
return _cached_max(reversed(artists))
19491948

0 commit comments

Comments
 (0)