diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index f7bd48e694d..abd17e86f5c 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -261,7 +261,7 @@ sub do_cmd_platform{ my $platform = next_argument(); $ModulePlatforms{$THIS_MODULE} = $platform; $platform = "Macintosh" - if $platform eq "Mac"; + if $platform eq 'Mac'; return "\n
Availability: $platform.
\n" . $_; } @@ -733,9 +733,9 @@ sub do_env_memberdesc{ $class = $THIS_CLASS unless $class; my $extra = ''; - $extra = " ($class_name attribute)" - if (!($class eq '')); - my $idx = make_str_index_entry("$member$extra"); + $extra = " ($class attribute)" + if ($class ne ''); + my $idx = make_str_index_entry("$member$extra"); $idx =~ s/ \(.*\)//; $idx =~ s/\(\)//; return "