]> thyrsus.com Git - comparator.git/commitdiff
Deal with an off-by-one.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 3 Sep 2003 16:36:22 +0000 (16:36 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 3 Sep 2003 16:36:22 +0000 (16:36 +0000)
filterator

index 365442053ea6ef02885026699f968e79465c0131..31f067e50c085057f2826283e73ce5078a5c05f9 100755 (executable)
@@ -87,7 +87,7 @@ if __name__ == '__main__':
                     for i in range(start-1):
                         rfp.readline()
                     text = ""
-                    for i in range(start, end):
+                    for i in range(start, end+1):
                         text += rfp.readline()
                     rfp.close()
                     if nofilter or nontrivial(text):