patch: simplify linereader
authorBartosz SKOWRON <getxsick@gmail.com>
Fri, 05 Dec 2008 14:51:50 +0100
changeset 7520 e4ab4802f261
parent 7519 992d78981cba
child 7521 ca044918fdf1
patch: simplify linereader
mercurial/patch.py
--- a/mercurial/patch.py	Sun Dec 14 18:13:41 2008 +0100
+++ b/mercurial/patch.py	Fri Dec 05 14:51:50 2008 +0100
@@ -774,9 +774,7 @@
 
     def readline(self):
         if self.buf:
-            l = self.buf[0]
-            del self.buf[0]
-            return l
+            return self.buf.pop(0)
         return self.fp.readline()
 
     def __iter__(self):