Skip to content

Commit f811d81

Browse files
committed
remove rtype from docstring
1 parent 647bd25 commit f811d81

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scripts/sipify.pl

+13-13
Original file line numberDiff line numberDiff line change
@@ -951,22 +951,22 @@ sub detect_comment_block{
951951
if ( $COMMENT !~ m/^\s*$/ ){
952952
my @comment_lines = split /\n/, $COMMENT;
953953
foreach my $comment_line (@comment_lines) {
954-
if ( $RETURN_TYPE ne '' && $comment_line =~ m/^\s*\.\. \w/ ){
955-
# return type must be added before any other paragraph-level markup
956-
write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
957-
$RETURN_TYPE = '';
958-
}
954+
# if ( $RETURN_TYPE ne '' && $comment_line =~ m/^\s*\.\. \w/ ){
955+
# # return type must be added before any other paragraph-level markup
956+
# write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
957+
# $RETURN_TYPE = '';
958+
# }
959959
write_output("CM2", "$comment_line\n");
960-
if ( $RETURN_TYPE ne '' && $comment_line =~ m/:return:/ ){
961-
# return type must be added before any other paragraph-level markup
962-
write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
963-
$RETURN_TYPE = '';
964-
}
960+
# if ( $RETURN_TYPE ne '' && $comment_line =~ m/:return:/ ){
961+
# # return type must be added before any other paragraph-level markup
962+
# write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
963+
# $RETURN_TYPE = '';
964+
# }
965965
}
966966
}
967-
if ( $RETURN_TYPE ne '' ){
968-
write_output("CM3", "\n:rtype: $RETURN_TYPE\n");
969-
}
967+
# if ( $RETURN_TYPE ne '' ){
968+
# write_output("CM3", "\n:rtype: $RETURN_TYPE\n");
969+
# }
970970
write_output("CM4", "%End\n");
971971
}
972972
$COMMENT = '';

0 commit comments

Comments
 (0)