8000 change __str__ to str · matplotlib/matplotlib@e399261 · GitHub
[go: up one dir, main page]

Skip to content

Commit e399261

Browse files
authored
change __str__ to str
1 parent 547b6c8 commit e399261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ def _char_index_at(self, x):
289289
"""
290290

291291
if (not hasattr(self, "_saved_fontproperties") or
292-
self._fontproperties.__str__() != self._saved_fontproperties):
292+
str(self._fontproperties) != self._saved_fontproperties):
293293

294-
self._saved_fontproperties = self._fontproperties.__str__()
294+
self._saved_fontproperties = str(self._fontproperties)
295295
self._chars_size = dict() # to cache results
296296

297297
text = self._text

0 commit comments

Comments
 (0)
0