equal
deleted
inserted
replaced
363 if err.errno != errno.ENOENT: |
363 if err.errno != errno.ENOENT: |
364 raise |
364 raise |
365 return |
365 return |
366 for i, line in enumerate(fp): |
366 for i, line in enumerate(fp): |
367 try: |
367 try: |
368 key, value = line[:-1].rsplit(' ', 1) |
368 key, value = line.splitlines()[0].rsplit(' ', 1) |
369 except ValueError: |
369 except ValueError: |
370 raise util.Abort(_('syntax error in %s(%d): key/value pair expected') |
370 raise util.Abort(_('syntax error in %s(%d): key/value pair expected') |
371 % (self.path, i+1)) |
371 % (self.path, i+1)) |
372 if key not in self: |
372 if key not in self: |
373 self.order.append(key) |
373 self.order.append(key) |