Don't append () to the name of an object attribute in the index.
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index e45712b..4a1967b 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -671,8 +671,8 @@
$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>";