diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index e45712b57f6..4a1967b74b5 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -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, "$member()$extra"); + if (!($class eq)); + my $idx = make_str_index_entry($3, "$member$extra"); $idx =~ s/ \(.*\)//; $idx =~ s/\(\)//; "