Skip to content
Permalink
Browse files

remove rtype from docstring

  • Loading branch information
3nids committed Dec 15, 2017
1 parent 647bd25 commit f811d8171b9173678cac16abc6a8f6bdb03734ef
Showing with 13 additions and 13 deletions.
  1. +13 −13 scripts/sipify.pl
@@ -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 = '';

0 comments on commit f811d81

Please sign in to comment.
You can’t perform that action at this time.