Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bookmarks.py @ 16194:6ba530122d8b stable
bookmarks: restore python 2.4 compatibility
Remove py25 'try except finally' clause.
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Wed, 29 Feb 2012 09:34:19 +0100 |
parents | 7c75924a6926 |
children | 6b16ded5c810 |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Wed Feb 29 17:43:03 2012 +0000 +++ b/mercurial/bookmarks.py Wed Feb 29 09:34:19 2012 +0100 @@ -129,11 +129,12 @@ def unsetcurrent(repo): wlock = repo.wlock() try: - util.unlink(repo.join('bookmarks.current')) - repo._bookmarkcurrent = None - except OSError, inst: - if inst.errno != errno.ENOENT: - raise + try: + util.unlink(repo.join('bookmarks.current')) + repo._bookmarkcurrent = None + except OSError, inst: + if inst.errno != errno.ENOENT: + raise finally: wlock.release()