]> granicus.if.org Git - python/commitdiff
Don't append () to the name of an object attribute in the index.
authorFred Drake <fdrake@acm.org>
Sun, 12 Apr 1998 03:49:46 +0000 (03:49 +0000)
committerFred Drake <fdrake@acm.org>
Sun, 12 Apr 1998 03:49:46 +0000 (03:49 +0000)
Doc/perl/python.perl

index e45712b57f6ee594794cbb7067c7d10d0a264e99..4a1967b74b5113a78019acccd0773b2a205cb391 100644 (file)
@@ -671,8 +671,8 @@ sub do_env_memberdesc{
     $class = $THIS_CLASS
         unless $class;
     $extra = " ($class_name attribute)"
-        if $class;
-    my $idx = make_str_index_entry($3, "<tt>$member()</tt>$extra");
+        if (!($class eq));
+    my $idx = make_str_index_entry($3, "<tt>$member</tt>$extra");
     $idx =~ s/ \(.*\)//;
     $idx =~ s/\(\)//;
     "<dl><dt><b>$idx</b>\n<dd>" . $_ . "</dl>";