mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
do_cmd_methodline(): Fixed reference to method name when generating
the output HTML.
This commit is contained in:
parent
4856d01797
commit
5a0ca4e55c
1 changed files with 3 additions and 3 deletions
|
|
@ -621,13 +621,13 @@ sub do_env_methoddesc{
|
||||||
my $class_name = next_optional_argument();
|
my $class_name = next_optional_argument();
|
||||||
$class_name = $THIS_CLASS
|
$class_name = $THIS_CLASS
|
||||||
unless $class_name;
|
unless $class_name;
|
||||||
my $method_name = next_argument();
|
my $method = next_argument();
|
||||||
my $arg_list = next_argument();
|
my $arg_list = next_argument();
|
||||||
my $extra = '';
|
my $extra = '';
|
||||||
if ($class_name) {
|
if ($class_name) {
|
||||||
$extra = " ($class_name method)";
|
$extra = " ($class_name method)";
|
||||||
}
|
}
|
||||||
my $idx = make_str_index_entry("<tt>$method_name()</tt>$extra");
|
my $idx = make_str_index_entry("<tt>$method()</tt>$extra");
|
||||||
$idx =~ s/ \(.*\)//;
|
$idx =~ s/ \(.*\)//;
|
||||||
$idx =~ s/\(\)//;
|
$idx =~ s/\(\)//;
|
||||||
return "<dl><dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_ . '</dl>';
|
return "<dl><dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_ . '</dl>';
|
||||||
|
|
@ -645,7 +645,7 @@ sub do_cmd_methodline{
|
||||||
if ($class_name) {
|
if ($class_name) {
|
||||||
$extra = " ($class_name method)";
|
$extra = " ($class_name method)";
|
||||||
}
|
}
|
||||||
my $idx = make_str_index_entry("<tt>$method_name()</tt>$extra");
|
my $idx = make_str_index_entry("<tt>$method()</tt>$extra");
|
||||||
$idx =~ s/ \(.*\)//;
|
$idx =~ s/ \(.*\)//;
|
||||||
$idx =~ s/\(\)//;
|
$idx =~ s/\(\)//;
|
||||||
return "<dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>"
|
return "<dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue