comparison mercurial/changelog.py @ 4938:02b127749dc0

fix unused variables reported by pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 20 Jul 2007 09:31:32 +0200
parents 5e365008360f
children d1bee415406e
comparison
equal deleted inserted replaced
4937:9bbc0217209b 4938:02b127749dc0
56 self.fp.seek(self.offset) 56 self.fp.seek(self.offset)
57 57
58 def read(self, count=-1): 58 def read(self, count=-1):
59 '''only trick here is reads that span real file and data''' 59 '''only trick here is reads that span real file and data'''
60 ret = "" 60 ret = ""
61 old_offset = self.offset
62 if self.offset < self.size: 61 if self.offset < self.size:
63 s = self.fp.read(count) 62 s = self.fp.read(count)
64 ret = s 63 ret = s
65 self.offset += len(s) 64 self.offset += len(s)
66 if count > 0: 65 if count > 0: