Spotted by Eric Sunshine:
https://public-inbox.org/git/CAPig+cRx3hG64nuDie69o_gdX39F=sR6D8LyA7J1rCErgu0aMA@mail.gmail.com/
Signed-off-by: Luke Diamand <redacted>
Signed-off-by: Junio C Hamano <redacted>
changes = []
if len(self.changesFile) > 0:
- output = open(self.changesFile).readlines()
+ with open(self.changesFile) as f:
+ output = f.readlines()
changeSet = set()
for line in output:
changeSet.add(int(line))