Skip to content

Commit 787a4c4

Browse files
authored
Merge pull request #3 from trinketapp/fix/kwargs
remove redundant `null` default
2 parents 631a246 + cd9a87e commit 787a4c4

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

matplotlib/pyplot/__init__.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,10 +2032,8 @@ var $builtinmodule = function(name) {
20322032
return new Sk.builtin.str(label_unwrap);
20332033
};
20342034

2035-
title_f.co_varnames = ['label', 'fontdict', 'loc', ];
2036-
title_f.$defaults = [null, Sk.builtin.none.none$, Sk.builtin.none.none$,
2037-
Sk.builtin.none.none$
2038-
];
2035+
title_f.co_varnames = ['label', 'fontdict', 'loc'];
2036+
title_f.$defaults = [Sk.builtin.none.none$, Sk.builtin.none.none$, Sk.builtin.none.none$];
20392037
mod.title = new Sk.builtin.func(title_f);
20402038

20412039
var axis_f = function(label, fontdict, loc) {
@@ -2057,10 +2055,8 @@ var $builtinmodule = function(name) {
20572055
return Sk.ffi.remapToPy([]);
20582056
};
20592057

2060-
axis_f.co_varnames = ['label', 'fontdict', 'loc', ];
2061-
axis_f.$defaults = [null, Sk.builtin.none.none$, Sk.builtin.none.none$,
2062-
Sk.builtin.none.none$
2063-
];
2058+
axis_f.co_varnames = ['label', 'fontdict', 'loc'];
2059+
axis_f.$defaults = [Sk.builtin.none.none$, Sk.builtin.none.none$, Sk.builtin.none.none$];
20642060
mod.axis = new Sk.builtin.func(axis_f);
20652061

20662062
var xlabel_f = function(s, fontdict, loc) {
@@ -2082,10 +2078,8 @@ var $builtinmodule = function(name) {
20822078
}
20832079
};
20842080

2085-
xlabel_f.co_varnames = ['s', 'fontdict', 'loc', ];
2086-
xlabel_f.$defaults = [null, Sk.builtin.none.none$, Sk.builtin.none.none$,
2087-
Sk.builtin.none.none$
2088-
];
2081+
xlabel_f.co_varnames = ['s', 'fontdict', 'loc'];
2082+
xlabel_f.$defaults = [Sk.builtin.none.none$, Sk.builtin.none.none$, Sk.builtin.none.none$];
20892083
mod.xlabel = new Sk.builtin.func(xlabel_f);
20902084

20912085
var ylabel_f = function(s, fontdict, loc) {
@@ -2107,10 +2101,8 @@ var $builtinmodule = function(name) {
21072101
}
21082102
};
21092103

2110-
ylabel_f.co_varnames = ['s', 'fontdict', 'loc', ];
2111-
ylabel_f.$defaults = [null, Sk.builtin.none.none$, Sk.builtin.none.none$,
2112-
Sk.builtin.none.none$
2113-
];
2104+
ylabel_f.co_varnames = ['s', 'fontdict', 'loc'];
2105+
ylabel_f.$defaults = [Sk.builtin.none.none$, Sk.builtin.none.none$, Sk.builtin.none.none$];
21142106
mod.ylabel = new Sk.builtin.func(ylabel_f);
21152107

21162108
// Clear the current figure

0 commit comments

Comments
 (0)