Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 78a1e43

Browse files
Apply suggestions from code review
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent d1984c5 commit 78a1e43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def _restore_foreground_window_at_end():
5252

5353
def _blit(argsid):
5454
"""
55-
Thin wrapper to blit via tkapp.call
55+
Thin wrapper to blit called via tkapp.call.
5656
5757
*argsid* is a unique string identifier to fetch the correct arguments from
58-
the _blit_args dict, since args cannot be passed directly
58+
the ``_blit_args`` dict, since arguments cannot be passed directly.
5959
6060
photoimage blanking must occur in the same event and thread as blitting
6161
to avoid flickering.
@@ -106,7 +106,7 @@ def blit(photoimage, aggimage, offsets, bbox=None):
106106
args = photoimage, dataptr, offsets, bboxptr, blank
107107
# Need a unique key to avoid thread races.
108108
# Again, make the key a string to avoid string parsing in _blit.
109-
argsid = repr(id(args))
109+
argsid = str(id(args))
110110
_blit_args[argsid] = args
111111

112112
try:

0 commit comments

Comments
 (0)