Mercurial > hg > mercurial-crew
comparison mercurial/bookmarks.py @ 17408:e95ec38f86b0
fix wording and not-completely-trivial spelling errors and bad docstrings
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 15 Aug 2012 22:39:18 +0200 |
parents | e7bf09acd410 |
children | fc530080013b |
comparison
equal
deleted
inserted
replaced
17407:e7cfe3587ea4 | 17408:e95ec38f86b0 |
---|---|
56 except IOError, inst: | 56 except IOError, inst: |
57 if inst.errno != errno.ENOENT: | 57 if inst.errno != errno.ENOENT: |
58 raise | 58 raise |
59 return None | 59 return None |
60 try: | 60 try: |
61 # No readline() in posixfile_nt, reading everything is cheap | 61 # No readline() in osutil.posixfile, reading everything is cheap |
62 mark = encoding.tolocal((file.readlines() or [''])[0]) | 62 mark = encoding.tolocal((file.readlines() or [''])[0]) |
63 if mark == '' or mark not in repo._bookmarks: | 63 if mark == '' or mark not in repo._bookmarks: |
64 mark = None | 64 mark = None |
65 finally: | 65 finally: |
66 file.close() | 66 file.close() |