comparison mercurial/patch.py @ 8891:5fe8dc75aa4a

patch: use new style class in linereader
author Simon Heimberg <simohe@besonet.ch>
date Mon, 22 Jun 2009 12:05:11 +0200
parents eb7b247a98ea
children 0001e49f1c11 360f61c2919f
comparison
equal deleted inserted replaced
8890:c487719cccef 8891:5fe8dc75aa4a
226 if not gitpatches: 226 if not gitpatches:
227 dopatch = GP_PATCH 227 dopatch = GP_PATCH
228 228
229 return (dopatch, gitpatches) 229 return (dopatch, gitpatches)
230 230
231 class linereader: 231 class linereader(object):
232 # simple class to allow pushing lines back into the input stream 232 # simple class to allow pushing lines back into the input stream
233 def __init__(self, fp, textmode=False): 233 def __init__(self, fp, textmode=False):
234 self.fp = fp 234 self.fp = fp
235 self.buf = [] 235 self.buf = []
236 self.textmode = textmode 236 self.textmode = textmode