grep: remove useless while condition stable
authorKevin Bullock <kbullock@ringworld.org>
Thu, 15 Nov 2012 11:27:30 -0600
branchstable
changeset 17949 407209261f63
parent 17931 35ba170c0f82
child 17950 a1f94e2f5da2
child 17951 6f79c32c0bdf
grep: remove useless while condition A revised version of 35ba170c0f82 was sent to the list that fixed this <http://markmail.org/message/jmfuiise5igcyh2m>, but the older version of the patch was applied.
mercurial/commands.py
--- a/mercurial/commands.py	Mon Nov 12 19:27:03 2012 +0200
+++ b/mercurial/commands.py	Thu Nov 15 11:27:30 2012 -0600
@@ -2935,7 +2935,7 @@
     def matchlines(body):
         begin = 0
         linenum = 0
-        while True and begin < len(body):
+        while begin < len(body):
             match = regexp.search(body, begin)
             if not match:
                 break