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 f881e9b

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

File tree

Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: lib/matplotlib/cbook/__init__.py
+2-3Lines changed: 2 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.