]> thyrsus.com Git - comparator.git/commitdiff
Get byte-stuffing right.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 4 Sep 2003 02:56:09 +0000 (02:56 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 4 Sep 2003 02:56:09 +0000 (02:56 +0000)
filterator

index 247ba85604d14798230fa733ec06215640cc410d..e8318d1bb9b602ab2a5a2badd8af7a06af73018f 100755 (executable)
@@ -114,7 +114,7 @@ if __name__ == '__main__':
                     for i in range(start, end+1):
                         nextline = rfp.readline()
                         if nextline[0] == '%':
-                            nextline[0] = '%' + nextline
+                            nextline = '%' + nextline
                         text += nextline
                     rfp.close()
                     if nofilter or nontrivial(text):