changeset 7520:e4ab4802f261

patch: simplify linereader
author Bartosz SKOWRON <getxsick@gmail.com>
date Fri, 05 Dec 2008 14:51:50 +0100
parents 992d78981cba
children ca044918fdf1
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):