Mercurial > hg
comparison hgext/convert/common.py @ 8155:b7cdfa2527be
strutil: removed rsplit
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 24 Apr 2009 17:32:18 +0200 |
parents | 04c62275cbc7 |
children | 1b60efdb8bc5 |
comparison
equal
deleted
inserted
replaced
8154:06f1e4e309ed | 8155:b7cdfa2527be |
---|---|
333 if err.errno != errno.ENOENT: | 333 if err.errno != errno.ENOENT: |
334 raise | 334 raise |
335 return | 335 return |
336 for i, line in enumerate(fp): | 336 for i, line in enumerate(fp): |
337 try: | 337 try: |
338 key, value = strutil.rsplit(line[:-1], ' ', 1) | 338 key, value = line[:-1].rsplit(' ', 1) |
339 except ValueError: | 339 except ValueError: |
340 raise util.Abort(_('syntax error in %s(%d): key/value pair expected') | 340 raise util.Abort(_('syntax error in %s(%d): key/value pair expected') |
341 % (self.path, i+1)) | 341 % (self.path, i+1)) |
342 if key not in self: | 342 if key not in self: |
343 self.order.append(key) | 343 self.order.append(key) |