From: Eric S. Raymond Date: Wed, 3 Sep 2003 16:36:22 +0000 (+0000) Subject: Deal with an off-by-one. X-Git-Tag: 1.0~31 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=fd1bbd556aac9214b0c1c5ae7e875d4e45b171f9;p=comparator.git Deal with an off-by-one. --- diff --git a/filterator b/filterator index 3654420..31f067e 100755 --- a/filterator +++ b/filterator @@ -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):