comparison mercurial/patch.py @ 14764:a7d5816087a9 stable

classes: fix class style problems found by b071cd58af50 This makes test-wireprotocol.py work on Python 2.4
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 29 Jun 2011 15:00:00 +0200
parents e4d3370fa234
children d60e4f227d75
comparison
equal deleted inserted replaced
14763:b071cd58af50 14764:a7d5816087a9
1007 return self.fuzzit(self.a, fuzz, toponly) 1007 return self.fuzzit(self.a, fuzz, toponly)
1008 1008
1009 def new(self, fuzz=0, toponly=False): 1009 def new(self, fuzz=0, toponly=False):
1010 return self.fuzzit(self.b, fuzz, toponly) 1010 return self.fuzzit(self.b, fuzz, toponly)
1011 1011
1012 class binhunk: 1012 class binhunk(object):
1013 'A binary patch file. Only understands literals so far.' 1013 'A binary patch file. Only understands literals so far.'
1014 def __init__(self, lr): 1014 def __init__(self, lr):
1015 self.text = None 1015 self.text = None
1016 self.hunk = ['GIT binary patch\n'] 1016 self.hunk = ['GIT binary patch\n']
1017 self._read(lr) 1017 self._read(lr)