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 f492078

Browse filesBrowse files
authored
Merge pull request #30146 from meeseeksmachine/auto-backport-of-pr-30144-on-v3.10.x
Backport PR #30144 on branch v3.10.x (js: Fix externally-controlled format strings)
2 parents ff1f813 + ae159fb commit f492078
Copy full SHA for f492078

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Filter options
  • lib/matplotlib/backends/web_backend/js
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed

‎lib/matplotlib/backends/web_backend/js/mpl.js

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/web_backend/js/mpl.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,19 +575,21 @@ mpl.figure.prototype._make_on_message_function = function (fig) {
575575
var callback = fig['handle_' + msg_type];
576576
} catch (e) {
577577
console.log(
578-
"No handler for the '" + msg_type + "' message type: ",
578+
"No handler for the '%s' message type: ",
579+
msg_type,
579580
msg
580581
);
581582
return;
582583
}
583584

584585
if (callback) {
585586
try {
586-
// console.log("Handling '" + msg_type + "' message: ", msg);
587+
// console.log("Handling '%s' message: ", msg_type, msg);
587588
callback(fig, msg);
588589
} catch (e) {
589590
console.log(
590-
"Exception inside the 'handler_" + msg_type + "' callback:",
591+
"Exception inside the 'handler_%s' callback:",
592+
msg_type,
591593
e,
592594
e.stack,
593595
msg

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.