]> granicus.if.org Git - python/commitdiff
do_cmd_methodline(): Fixed reference to method name when generating
authorFred Drake <fdrake@acm.org>
Tue, 12 Jan 1999 04:16:51 +0000 (04:16 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 12 Jan 1999 04:16:51 +0000 (04:16 +0000)
the output HTML.

Doc/perl/python.perl

index de47e974611c532f1572b1b46fdac6f77225f432..ff0bd88548fc39e9ca6b7e7b65ecf5f37c40423b 100644 (file)
@@ -621,13 +621,13 @@ sub do_env_methoddesc{
     my $class_name = next_optional_argument();
     $class_name = $THIS_CLASS
         unless $class_name;
-    my $method_name = next_argument();
+    my $method = next_argument();
     my $arg_list = next_argument();
     my $extra = '';
     if ($class_name) {
        $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/\(\)//;
     return "<dl><dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_ . '</dl>';
@@ -645,7 +645,7 @@ sub do_cmd_methodline{
     if ($class_name) {
        $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/\(\)//;
     return "<dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>"