From: Fred Drake Date: Wed, 21 Apr 1999 15:58:58 +0000 (+0000) Subject: do_cmd_funcline(): Remove some bogus generated stuff from the output X-Git-Tag: v1.6a1~1565 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca675e491baffc9edf73f3470de7516b15fbb40c;p=thirdparty%2FPython%2Fcpython.git do_cmd_funcline(): Remove some bogus generated stuff from the output (some text was only intended for the index). --- diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index abd17e86f5c9..eb6dfdf4e217 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -589,10 +589,11 @@ sub do_cmd_funcline{ local($_) = @_; my $function_name = next_argument(); my $arg_list = next_argument(); - my $idx = make_str_index_entry("$function_name()" - . get_indexsubitem()); - $idx =~ s/\(\)//; - return "
$idx ($arg_list)\n
" . $_; + my $prefix = "$function_name()"; + my $idx = make_str_index_entry($prefix . get_indexsubitem()); + $prefix =~ s/\(\)//; + + return "
$prefix ($arg_list)\n
" . $_; } # Change this flag to index the opcode entries. I don't think it's very