Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf881e9b

Browse files
authored
Merge pull request#11396 from anntzer/py2comments
Remove some (minor) comments regarding Py2.
2 parents6665bc7 +26b61e3 commitf881e9b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎lib/matplotlib/artist.py

Lines 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

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp