mercurial/patch.py
changeset 8891 5fe8dc75aa4a
parent 8843 eb7b247a98ea
child 9029 0001e49f1c11
child 9123 360f61c2919f
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