Skip to content

Commit

Permalink
remove rtype from docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 16, 2017
1 parent 647bd25 commit f811d81
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scripts/sipify.pl
Expand Up @@ -951,22 +951,22 @@ sub detect_comment_block{
if ( $COMMENT !~ m/^\s*$/ ){
my @comment_lines = split /\n/, $COMMENT;
foreach my $comment_line (@comment_lines) {
if ( $RETURN_TYPE ne '' && $comment_line =~ m/^\s*\.\. \w/ ){
# return type must be added before any other paragraph-level markup
write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
$RETURN_TYPE = '';
}
# if ( $RETURN_TYPE ne '' && $comment_line =~ m/^\s*\.\. \w/ ){
# # return type must be added before any other paragraph-level markup
# write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
# $RETURN_TYPE = '';
# }
write_output("CM2", "$comment_line\n");
if ( $RETURN_TYPE ne '' && $comment_line =~ m/:return:/ ){
# return type must be added before any other paragraph-level markup
write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
$RETURN_TYPE = '';
}
# if ( $RETURN_TYPE ne '' && $comment_line =~ m/:return:/ ){
# # return type must be added before any other paragraph-level markup
# write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
# $RETURN_TYPE = '';
# }
}
}
if ( $RETURN_TYPE ne '' ){
write_output("CM3", "\n:rtype: $RETURN_TYPE\n");
}
# if ( $RETURN_TYPE ne '' ){
# write_output("CM3", "\n:rtype: $RETURN_TYPE\n");
# }
write_output("CM4", "%End\n");
}
$COMMENT = '';
Expand Down

0 comments on commit f811d81

Please sign in to comment.