hgext/convert/common.py
changeset 9542 5287de171d74
parent 9467 4c041f1ee1b4
parent 9528 314fc589b313
child 10263 25e572394f5c
equal deleted inserted replaced
9541:53a95a744812 9542:5287de171d74
   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)