From: Eric S. Raymond Date: Tue, 11 Nov 2014 06:59:58 +0000 (-0500) Subject: Minor refactoring step. Regression test passes. X-Git-Tag: 0.5~24 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=0d5bc2890a827aa2db518920c64487bccc714da8;p=src.git Minor refactoring step. Regression test passes. --- diff --git a/src b/src index 1ed54ec..a2175d2 100755 --- a/src +++ b/src @@ -455,8 +455,6 @@ class CommentContext: croak("malformed comment") if not self.comment.endswith("\n"): self.comment += "\n" - # Because it's going to be handed back as a shell argument - self.comment = "'" + self.comment.replace("'", r"'\''") + "'" def content(self): "Reurn the edited comment." return self.comment @@ -945,13 +943,14 @@ class RCS: do_or_die("rcs -q -U -kb -i {0}